/* PLAYORA 블록 퍼즐 */
:root {
  --page: #f4eee2; --page-ink: #2e261e; --page-2: #685b4d; --page-line: #ddd2bd; --page-acc: #2e5f8c; --page-soft: #ebe3d2;
  --f-body: "IBM Plex Sans KR", "Pretendard", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  --f-disp: "Gasoek One", "Black Han Sans", "Do Hyeon", "Malgun Gothic", sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r1: 6px; --r2: 10px; --r3: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@supports (color: oklch(0 0 0)) {
  :root { --page: oklch(0.948 0.018 85); --page-ink: oklch(0.27 0.02 60); --page-2: oklch(0.48 0.025 65); --page-line: oklch(0.865 0.03 85); --page-acc: oklch(0.47 0.09 250); --page-soft: oklch(0.915 0.025 85); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--page-ink); font: 400 16px/1.7 var(--f-body); word-break: keep-all; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
button:disabled { cursor: default; opacity: 0.4; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 페이지 머리 (가장자리에 붙인 얇은 띠) */
.mast { display: flex; align-items: baseline; gap: var(--s4); padding: var(--s3) clamp(var(--s4), 3vw, var(--s6)); border-bottom: 1px solid var(--page-line); }
.mast-brand { text-decoration: none; font-size: 14px; color: var(--page-2); white-space: nowrap; }
.mast-brand b { font-weight: 700; letter-spacing: 0.08em; color: var(--page-ink); margin-right: 6px; }
.mast-more { margin-left: auto; font-size: 14px; color: var(--page-2); white-space: nowrap; }
.head { max-width: 1240px; margin: 0 auto; padding: var(--s4) clamp(var(--s3), 3vw, var(--s6)) var(--s3); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); }
.head h1 { margin: 0; font: 400 clamp(34px, 4.4vw, 48px)/1.05 var(--f-disp); letter-spacing: 0.01em; font-style: normal; }
.head p { margin: 0; color: var(--page-2); font-size: 15px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(0px, 2vw, var(--s5)); }

/* ---------------------------------------------------------------- 게임 무대. 색은 테마마다 js가 바꿔 넣음 (아래는 나무 테마 값) */
.bp { --bg: #efe6d3; --bg2: #e7dcc5; --ink: #3a2e24; --ink2: #6a594a; --ink3: #8d7b68; --line: #d3c5ab; --panel: #e4d8c0; --acc: #2e5f8c; --acc-ink: #fdf8ee; --gold: #c98f1e; --tex: none;
  position: relative; width: 100%; height: clamp(480px, calc(100svh - 132px), 860px); background-color: var(--bg); background-image: var(--tex); color: var(--ink); overflow: hidden; border-radius: var(--r2);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; font-family: var(--f-body); font-size: 14px; line-height: 1.45; }
@media (max-width: 640px) { .bp { border-radius: 0; height: min(86svh, 800px); min-height: 560px; } .head { padding-top: var(--s3); } .head p { display: none; } }
html.embed, html.embed body { height: 100%; overflow: hidden; background: #efe6d3; }
html.embed .mast, html.embed .head, html.embed .about, html.embed .foot { display: none !important; }
html.embed .wrap { padding: 0; max-width: none; }
html.embed .bp, .bp.fs { position: fixed; inset: 0; width: auto; height: auto; min-height: 0; border-radius: 0; }
.bp button:focus-visible, .bp canvas:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.bp svg { width: 18px; height: 18px; flex: none; }

/* 위 막대 */
.bar { position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 9; display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s2) 0 var(--s4); background: var(--bg2); border-bottom: 1px solid var(--line); }
.bp.short .bar { height: 40px; }
.bar-l { display: flex; align-items: baseline; gap: var(--s3); min-width: 0; flex: 1; overflow: hidden; }
.bar-t { font: 700 17px/1 var(--f-body); letter-spacing: -0.01em; white-space: nowrap; }
.bar-m { color: var(--ink2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar-r { display: flex; align-items: center; gap: 5px; flex: none; }
.tb { height: 32px; padding: 0 var(--s3); border-radius: var(--r1); border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 13px/1 var(--f-body); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.tb:hover:not(:disabled) { border-color: var(--ink3); background: var(--panel); }
.tb.icon { width: 34px; padding: 0; position: relative; }
.tb.icon .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tb .off { display: none; }
.tb.off .off { display: inline; }
.tb.off .on { display: none; }
.tb.off { color: var(--ink3); }
.bp:not(.on-play) #bMenu, .bp:not(.on-play) #bAgain { display: none; }
.bp.narrow .bar { padding-left: var(--s3); }
.bp.narrow .bar-r { gap: 4px; }
.bp.narrow .tb.icon { width: 32px; }
.bp.narrow.on-play .bar-m { display: none; }
.bp.narrow .bar-t { font-size: 16px; }

/* 판 */
#cv { position: absolute; left: 0; z-index: 1; display: block; touch-action: none; outline: none; }
.hud { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); min-width: 0; }
.h-main { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 100%; }
#hLab { font-size: 12px; color: var(--ink3); white-space: nowrap; line-height: 1.3; }
#hNum { font: 400 clamp(28px, 4.2vw, 46px)/1.08 var(--f-disp); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: 0.01em; }
#hNum.long { font-size: clamp(21px, 3vw, 34px); }
#hNum.low { color: var(--acc); }
#hSub { font-size: 13px; color: var(--ink2); white-space: nowrap; line-height: 1.35; }
.h-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; max-width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font: 600 12px/1 var(--f-body); white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip.done { background: var(--ink); color: var(--bg); border-color: transparent; }
.chip.soft { color: var(--ink2); font-weight: 500; }
.chip.streak { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.pip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.pip.off { opacity: 0.32; }
.bp.portrait .hud { flex-direction: row; align-items: center; gap: var(--s3); }
.bp.portrait .h-main { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; flex: none; }
.bp.portrait #hNum { font-size: 27px; }
.bp.portrait #hNum.long { font-size: 21px; }
.bp.portrait #hSub { grid-column: 1 / -1; font-size: 12px; }
.bp.portrait .h-chips { flex-direction: row; flex-wrap: wrap; flex: 1; gap: 4px; align-content: center; max-height: 52px; overflow: hidden; }
.bp.short .hud { gap: var(--s2); }
.acts { position: absolute; z-index: 2; display: flex; align-items: center; gap: var(--s3); }
.ab { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 38px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r2); background: var(--panel); color: var(--ink); font: 600 13px/1 var(--f-body); white-space: nowrap; min-width: 0; flex: none; }
.ab:hover:not(:disabled) { border-color: var(--ink3); }
.acts-tip { color: var(--ink3); font-size: 12px; line-height: 1.3; white-space: normal; min-width: 0; }
.bp:not(.portrait) .acts { flex-direction: column-reverse; align-items: flex-start; justify-content: flex-start; gap: 6px; }
.bp:not(.portrait) .tip-p, .bp.portrait .tip-l { display: none; }
.bp.portrait .chip.star3 { display: none; }
.stuck { position: absolute; z-index: 6; left: 50%; top: 46%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: 0 16px 40px -12px rgba(40, 28, 16, 0.5); max-width: calc(100% - 24px); text-align: center; }
.stuck p { margin: 0; font: 700 18px/1.3 var(--f-body); letter-spacing: -0.01em; }
.stuck-b { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; }
.toast { position: absolute; z-index: 30; left: 50%; top: 56px; transform: translate(-50%, -8px); max-width: calc(100% - 32px); padding: var(--s2) var(--s4); border-radius: 18px; background: var(--ink); color: var(--bg); font-size: 14px; line-height: 1.4; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.3s var(--ease); white-space: normal; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 40px; padding: 0 var(--s4); border-radius: var(--r2); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 600 14px/1 var(--f-body); white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--ink3); }
.btn.big { height: 46px; padding: 0 var(--s5); background: var(--acc); border-color: transparent; color: var(--acc-ink); font-size: 15px; }
.btn.big:hover:not(:disabled) { filter: brightness(1.08); }
.btn.ghost { background: transparent; }

/* ---------------------------------------------------------------- 덮개 화면 (처음·단계 고르기·결과) */
.scr { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; top: 46px; background-color: var(--bg); background-image: var(--tex); overflow-y: auto; overscroll-behavior: contain; }
.bp.short .scr { top: 40px; }
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: var(--s5) clamp(var(--s5), 5vw, var(--s8)); align-items: center; min-height: 100%; padding: var(--s5) clamp(var(--s4), 5vw, var(--s8)); }
.home-art { display: block; margin: 0 0 var(--s4) -6px; }
.home-t { margin: 0; font: 400 clamp(50px, 8.4vw, 98px)/1.02 var(--f-disp); letter-spacing: 0.005em; font-style: normal; }
.home-s { margin: var(--s3) 0 0; max-width: 24em; color: var(--ink2); font-size: 15px; line-height: 1.6; }
.home-links { display: flex; gap: var(--s2); margin-top: var(--s4); }
.lk { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: 18px; background: transparent; color: var(--ink); font: 600 13px/1 var(--f-body); }
.lk:hover { border-color: var(--ink3); background: var(--panel); }
.home-r { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.mrow { display: flex; flex-direction: column; align-items: stretch; gap: 3px; width: 100%; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r2); background: var(--panel); color: var(--ink); text-align: left; white-space: normal; }
.mrow:hover { border-color: var(--ink3); }
.mrow.cont { border-color: var(--acc); background: transparent; box-shadow: inset 0 0 0 1px var(--acc); }
.mr-t { font: 700 16px/1.25 var(--f-body); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.mr-t em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.mr-s { color: var(--ink2); font-size: 13px; line-height: 1.4; }
.opt { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s1); }
.opt-k { color: var(--ink3); font-size: 13px; width: 50px; flex: none; }
.segs, .tsets { display: flex; gap: 6px; flex: 1; min-width: 0; }
.seg { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r1); background: transparent; color: var(--ink); font: 600 13px/1 var(--f-body); }
.seg small { color: var(--ink3); font-weight: 500; font-size: 12px; }
.seg.on, .tset.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--panel); }
.tset { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 6px 4px; border: 1px solid var(--line); border-radius: var(--r1); background: transparent; color: var(--ink); font: 600 12px/1.2 var(--f-body); min-width: 0; }
.tset canvas { display: block; }
.tset-c { display: block; }
.tset-n { display: inline-flex; align-items: center; gap: 3px; }
.tset-n svg { width: 12px; height: 12px; }
.tset.locked { color: var(--ink3); }
.tset.locked canvas { opacity: 0.45; }

.stg { max-width: 860px; margin: 0 auto; padding: var(--s5) var(--s4) var(--s6); }
.stg-h { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.su-k, .res-k { margin: 0; color: var(--ink3); font-size: 13px; }
.su-t, .res-t { margin: var(--s1) 0 0; font: 400 clamp(28px, 4.6vw, 42px)/1.12 var(--f-disp); font-style: normal; }
.stg-sum { margin: 0; display: inline-flex; align-items: center; gap: 5px; color: var(--ink2); font-size: 14px; white-space: nowrap; }
.stg-sum b { color: var(--ink); font-size: 18px; }
.stg-sum svg, .stars svg.on { fill: var(--gold); stroke: var(--gold); }
.stg .mrow.cont { margin-bottom: var(--s4); }
.chap { margin-top: var(--s4); }
.chap-t { margin: 0 0 var(--s2); font: 700 15px/1.3 var(--f-body); display: flex; align-items: baseline; gap: var(--s2); }
.chap-t span { color: var(--ink3); font-weight: 600; font-size: 13px; }
.stg-g { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.stb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 54px; padding: 0 2px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--panel); color: var(--ink); min-width: 0; }
.stb:hover:not(.locked) { border-color: var(--ink3); }
.stb b { font: 700 16px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.stb.art b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.stb.locked { background: transparent; color: var(--ink3); }
.stb.locked svg { width: 13px; height: 13px; }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 11px; height: 11px; stroke: var(--ink3); stroke-width: 1.6; }
.stars.big { gap: 6px; }
.stars.big svg { width: 44px; height: 44px; stroke-width: 1.3; }
.su-b, .res-b { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.res { display: flex; align-items: flex-start; justify-content: center; min-height: 100%; padding: var(--s5) var(--s4); }
.res-in { width: 100%; max-width: 560px; margin: auto 0; }
.res-stars { margin: var(--s3) 0 0; }
.res-s { margin: var(--s2) 0 var(--s4); color: var(--ink2); font-size: 14px; line-height: 1.55; }
.res-in.fail .res-t { color: var(--ink2); }
.res-total { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s2); }
.res-total span { color: var(--ink3); }
.res-total b { font: 400 44px/1 var(--f-disp); font-variant-numeric: tabular-nums; }
.res-total em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--acc-ink); background: var(--acc); border-radius: 12px; padding: 3px 10px; }
.res-total small { color: var(--ink2); font-size: 13px; }
.res-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.res-tab th { text-align: left; font-weight: 500; color: var(--ink2); padding: 7px 0; border-bottom: 1px solid var(--line); }
.res-tab td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; padding: 7px 0; border-bottom: 1px solid var(--line); }
.res-news { margin: var(--s3) 0 0; padding: var(--s2) var(--s3); list-style: none; border-radius: var(--r2); background: var(--panel); font-size: 13px; }
.res-news li { margin: 2px 0; }

/* 창 */
.modal { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: var(--s3); background: rgba(40, 30, 20, 0.5); }
.mbox { position: relative; width: 100%; max-width: 600px; max-height: 100%; overflow-y: auto; padding: var(--s5) var(--s5) var(--s4); border-radius: var(--r3); background: var(--bg); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(40, 28, 16, 0.6); font-size: 14px; line-height: 1.6; }
.mbox.coach { max-width: 440px; }
.mbox.ask { max-width: 380px; }
.mx { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.m-t { margin: 0 44px var(--s2) 0; font: 700 21px/1.25 var(--f-body); letter-spacing: -0.015em; font-style: normal; }
.m-h { margin: var(--s4) 0 var(--s1); font: 700 15px/1.3 var(--f-body); }
.m-p { margin: 0; color: var(--ink2); }
.m-s { color: var(--ink3); font-size: 13px; margin: var(--s3) 0 0; }
.m-l { padding-left: 1.25em; margin: var(--s2) 0 0; color: var(--ink); }
.m-l li { margin: 4px 0; }
.m-b { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
.ask-t { margin: 0; font-size: 15px; line-height: 1.55; }
#coachArt { display: block; margin: var(--s2) auto var(--s1); }
.mbox .fig { margin: var(--s3) 0 0; background: var(--panel); border-radius: var(--r2); padding: var(--s3); }
.mbox .fig figcaption { font-size: 12px; margin-top: var(--s2); color: var(--ink2); }
.rec-tab { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: var(--s2); }
.rec-tab th, .rec-tab td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rec-tab th { font-weight: 500; color: var(--ink2); width: 46%; }
.rec-tab td { font-weight: 600; }
.ach { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ach li { padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r1); color: var(--ink3); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ach li b { font-size: 13px; color: var(--ink2); }
.ach li span { font-size: 12px; line-height: 1.35; }
.ach li.got { background: var(--panel); border-color: var(--ink3); color: var(--ink2); }
.ach li.got b { color: var(--ink); }
.ach li.got b::after { content: " 달성"; font-weight: 600; font-size: 11px; color: var(--acc); }

/* 세로로 긴 좌은 화면: 한 열 */
@media (max-width: 760px) and (min-height: 541px) {
  .home { grid-template-columns: 1fr; align-items: start; align-content: start; gap: var(--s3); padding: var(--s4) var(--s3); }
  .home-l { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 var(--s2); }
  .home-t { font-size: 44px; }
  .home-s { grid-column: 1 / -1; font-size: 13px; margin-top: var(--s1); max-width: none; }
  .home-links { margin: 0 0 6px; }
  .lk { height: 32px; padding: 0 10px; }
  .mrow { padding: 10px var(--s3); }
}
@media (max-width: 760px) {
  .ach { grid-template-columns: 1fr; }
  .mbox { padding: var(--s4) var(--s4) var(--s3); }
}
@media (max-width: 560px) {
  .stg-g { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .home-s { display: none; }
  .lk svg { display: none; }
  .tset { padding: 4px 3px 3px; font-size: 11px; }
  .opt { gap: var(--s2); }
  .opt-k { width: 44px; font-size: 12px; }
  .seg { padding: 0 10px; }
}
/* 낮은 가로 화면: 두 열을 지키고 줄 간격을 줄임 */
@media (max-height: 540px) {
  .home { padding: var(--s3) clamp(var(--s3), 4vw, var(--s7)); gap: var(--s3) var(--s5); }
  .home-t { font-size: clamp(38px, 6.6vw, 56px); }
  .home-s { font-size: 13px; margin-top: var(--s2); }
  .home-links { margin-top: var(--s3); }
  .lk { height: 32px; }
  .tset { padding: 3px 5px 3px; }
  .res-in { max-width: 780px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(var(--s5), 5vw, var(--s7)); align-items: center; }
  .res-news { margin-top: var(--s2); padding: 4px var(--s2); font-size: 12px; }
  .mbox.coach { max-width: 640px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); }
  .mbox.coach .m-t { grid-column: 1 / -1; }
  .mbox.coach #coachArt { grid-column: 1; grid-row: 2 / span 2; margin: 0; }
  .mbox.coach .m-l { grid-column: 2; margin-top: 0; }
  .mbox.coach .m-b { grid-column: 2; margin-top: var(--s2); }
  .home-r { gap: 6px; }
  .mrow { padding: 7px var(--s3); }
  .mr-s { display: none; }
  .mr-t { font-size: 15px; }
  .opt { margin-top: 0; }
  .seg { height: 32px; }
  .su-t, .res-t { font-size: 28px; }
  .su-b, .res-b { margin-top: var(--s3); }
  .res { padding-top: var(--s3); padding-bottom: var(--s3); }
  .res-total b { font-size: 32px; }
  .res-tab th, .res-tab td { padding: 4px 0; }
  .res-s { margin-bottom: var(--s2); }
  .stars.big svg { width: 32px; height: 32px; }
  .stb { height: 46px; }
}

/* ---------------------------------------------------------------- 소개 글 (왼쪽 넓은 본문 + 오른쪽 좁은 표) */
.about { max-width: 1240px; margin: 0 auto; padding: var(--s7) clamp(var(--s4), 3vw, var(--s6)) var(--s6); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6) clamp(var(--s5), 4vw, var(--s8)); }
.about h2 { font: 700 clamp(22px, 2.3vw, 26px)/1.3 var(--f-body); margin: var(--s7) 0 var(--s3); font-style: normal; letter-spacing: -0.015em; padding-top: var(--s4); border-top: 2px solid var(--page-ink); }
.about h2:first-child { border-top: 0; padding-top: 0; }
.about h2:first-child { margin-top: 0; }
.about h3 { font: 700 17px/1.4 var(--f-body); margin: var(--s5) 0 var(--s2); }
.about p, .about li { color: var(--page-ink); }
.about ol, .about ul { padding-left: 1.3em; }
.about li { margin: 6px 0; }
.about dl { margin: 0; }
.about dt { font-weight: 700; margin-top: var(--s4); }
.about dd { margin: 4px 0 0; color: var(--page-2); }
.about .note { font-size: 14px; color: var(--page-2); border-left: 3px solid var(--page-line); padding-left: var(--s3); }
.about .more { margin-top: var(--s6); font-size: 14px; color: var(--page-2); line-height: 1.9; }
.about .more a { color: var(--page-ink); }
.about-side h3:first-child { margin-top: 0; }
.keytab { width: 100%; border-collapse: collapse; font-size: 14px; }
.keytab th, .keytab td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--page-line); vertical-align: top; }
.keytab th { font-weight: 600; width: 40%; padding-right: var(--s2); }
.keytab td { color: var(--page-2); }
.rule-fig { margin: var(--s4) 0 var(--s2); padding: var(--s3); border-radius: var(--r2); background: var(--page-soft); }
.rf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s3) var(--s3); }
.rf { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.rf svg { display: block; width: 100%; max-width: 190px; height: auto; }
.rf span { font-size: 13px; line-height: 1.4; color: var(--page-ink); text-align: center; }
.rule-fig figcaption { margin-top: var(--s3); font-size: 14px; color: var(--page-2); }
.pc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--s3) var(--s2); }
.pc { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.pc svg { display: block; width: 74px; height: auto; }
.pc span { display: flex; flex-direction: column; align-items: center; font-size: 13px; line-height: 1.35; color: var(--page-ink); text-align: center; }
.pc small { color: var(--page-2); font-size: 12px; }
.mbox .rf-row { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--s2); }
.mbox .rf svg { width: 100%; height: auto; }
.mbox .rf span { font-size: 12px; color: var(--ink); }
.tab-wrap { overflow-x: auto; }
.wide-tab { max-width: 620px; }
.wide-tab th { width: auto; white-space: nowrap; padding-right: var(--s4); }
.foot { max-width: 1240px; margin: 0 auto; padding: var(--s5) clamp(var(--s4), 3vw, var(--s6)) var(--s7); border-top: 1px solid var(--page-line); font-size: 13px; color: var(--page-2); }
.foot a { margin-right: var(--s4); white-space: nowrap; }
.foot p { margin: var(--s3) 0 0; max-width: 60em; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.nojs { padding: var(--s6); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}
