/* PLAYORA 바둑 */
:root {
  --bg: #1a1d25; --bg-2: #21252e; --bg-3: #2a2f39; --line: #3d4350; --ink: #eef0f4; --ink-2: #c4c9d3; --ink-3: #959cab;
  --acc: #d9415a; --acc-ink: #fff5f6; --ok: #9fd7b0; --bad: #f2a0a8; --gold: #f0c674; --wood: #d8a85e;
  --page: #f5f2ea; --page-ink: #22252b; --page-2: #575d68; --page-line: #ddd8cb; --page-acc: #b3324a;
  --f-body: "IBM Plex Sans KR", "Pretendard", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  --f-disp: "Gowun Batang", "Noto Serif KR", "Nanum Myeongjo", "Batang", 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 {
    --bg: oklch(0.215 0.016 265); --bg-2: oklch(0.248 0.018 265); --bg-3: oklch(0.29 0.02 265); --line: oklch(0.385 0.022 265);
    --ink: oklch(0.955 0.006 265); --ink-2: oklch(0.83 0.014 265); --ink-3: oklch(0.68 0.02 265);
    --acc: oklch(0.6 0.18 14); --gold: oklch(0.84 0.11 82);
    --page: oklch(0.962 0.01 90); --page-ink: oklch(0.26 0.012 265); --page-2: oklch(0.47 0.017 265); --page-line: oklch(0.88 0.016 90); --page-acc: oklch(0.5 0.16 14);
  }
}
* { 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.42; }
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: 700 clamp(34px, 4.4vw, 46px)/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)); }

/* ---------------------------------------------------------------- 게임 무대 */
.bd { position: relative; width: 100%; height: clamp(480px, calc(100svh - 132px), 900px); background: var(--bg); 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) { .bd { border-radius: 0; height: min(84svh, 780px); min-height: 540px; } .head { padding-top: var(--s3); } .head p { display: none; } }
html.embed, html.embed body { height: 100%; overflow: hidden; background: var(--bg); }
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 .bd { position: fixed; inset: 0; width: auto; height: auto; min-height: 0; border-radius: 0; }
.bd button:focus-visible, .bd input:focus-visible, .bd canvas:focus-visible, .bd textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.st-ic { width: 20px; height: 20px; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)); }
.st-ic.mini { width: 14px; height: 14px; }

/* 위 막대 */
.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(--s3); background: var(--bg-2); border-bottom: 1px solid rgba(0, 0, 0, 0.45); }
.bd.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 21px/1 var(--f-disp); letter-spacing: 0.04em; white-space: nowrap; }
.bar-m { color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar-r { display: flex; align-items: center; gap: 6px; 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(--ink-3); background: rgba(255, 255, 255, 0.04); }
.tb .ic { display: inline-flex; }
.tb svg { width: 17px; height: 17px; flex: none; }
.tb.icon { width: 34px; padding: 0; }
.tb.icon .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tb[aria-pressed="false"] { color: var(--ink-3); }
@media (max-width: 720px) { .bar-r .w-lbl { width: 34px; padding: 0; } .bar-r .w-lbl .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.bd.narrow .bar-m { display: none; }

/* 판 */
.bw { position: absolute; z-index: 1; }
.bw canvas { display: block; touch-action: none; outline: none; border-radius: 3px; box-shadow: 0 24px 46px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.45); }
.stamp { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.7); pointer-events: none; opacity: 0; z-index: 3; }
.stamp b { display: block; padding: 0.24em 0.7em 0.32em; font: 700 clamp(24px, 6.4vmin, 46px)/1 var(--f-disp); color: var(--acc-ink); background: var(--acc); border-radius: var(--r3); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); white-space: nowrap; letter-spacing: 0.03em; }
.stamp.on { animation: stampIn 1.15s var(--ease) forwards; }
.stamp.on.hold { animation: none; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.stamp.big b { font-size: clamp(30px, 8.5vmin, 66px); }
.stamp.good b { background: var(--gold); color: #2b1f08; }
@keyframes stampIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(0.97); }
  30% { transform: translate(-50%, -50%) scale(1.01); }
  78% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
.toast { position: absolute; left: 50%; bottom: 7%; transform: translate(-50%, 8px); width: max-content; max-width: 92%; padding: 9px 14px; border-radius: 12px; background: rgba(14, 16, 22, 0.94); color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: opacity .18s, transform .3s var(--ease); z-index: 4; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); white-space: normal; line-height: 1.45; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 선수 카드 */
.pl { position: absolute; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 7px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r2); transition: border-color .25s, box-shadow .25s; }
.pl .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); }
.pl .av .st-ic { width: 30px; height: 30px; }
.pl .pn { min-width: 0; display: flex; flex-direction: column; }
.pl .pn b { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .tag { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: var(--ink-2); color: var(--bg); font: 700 12px/1.25 var(--f-body); font-style: normal; vertical-align: 1px; letter-spacing: 0.04em; }
.pl .pn small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .pr { display: flex; align-items: center; gap: 8px; justify-self: end; }
.pl .tn { font-size: 12px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.pl .pz-pass { font-size: 12px; font-weight: 700; color: var(--ink); background: var(--bg-3); border: 1px solid var(--line); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.pl .cap { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r1); background: var(--bg); font: 700 14px/1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.pl .think { display: inline-flex; gap: 3px; }
.pl .think i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1s infinite both; }
.pl .think i:nth-child(2) { animation-delay: .15s; } .pl .think i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.pl.turn { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 18px -6px rgba(240, 198, 116, 0.55); }
.bd.port .pl { padding: 4px 8px; column-gap: 8px; }
.bd.port .pl .av { width: 32px; height: 32px; }
.bd.port .pl .av .st-ic { width: 25px; height: 25px; }
.bd.port .pl .pn b { font-size: 13px; }
.bd.port .pl .pn small { font-size: 12px; }
.bd.narrow .pl .pn small { display: none; }

/* 기보 */
.side { position: absolute; z-index: 2; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.kh { display: flex; align-items: center; gap: var(--s2); padding: 8px 10px 6px; border-bottom: 1px solid var(--line); min-height: 38px; }
.kh b { font: 700 16px/1 var(--f-disp); flex: none; }
.kh-r { color: var(--ink-3); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.kc { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: var(--r1); border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.kc svg { width: 14px; height: 14px; }
.kc:hover { color: var(--ink); border-color: var(--ink-3); }
.mv { margin: 0; padding: 6px; flex: 1; overflow-y: auto; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; scrollbar-width: thin; }
.mv .m { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 7px 0 4px; border-radius: 13px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.04); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.mv .m i { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; font: 600 12px/1 var(--f-body); font-style: normal; }
.mv .m.b i { background: #121316; color: #f1f1f3; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.mv .m.w i { background: #eeece6; color: #23252b; }
.mv .m:hover { border-color: var(--ink-3); }
.mv .m.cur { border-color: var(--acc); background: rgba(217, 65, 90, 0.16); }
.mv .mv-e { margin: 4px; color: var(--ink-3); font-size: 13px; }
.rev { display: flex; align-items: center; gap: 4px; padding: 6px; border-top: 1px solid var(--line); }
.rev:empty { display: none; }
.rb { height: 28px; min-width: 30px; padding: 0 6px; border-radius: var(--r1); border: 1px solid var(--line); background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.rb svg { width: 15px; height: 15px; }
.rb:hover { color: var(--ink); border-color: var(--ink-3); }
.rev .rv-n { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* 문제·배우기·계가 안내 */
.info { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 7px; padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r2); overflow-y: auto; scrollbar-width: thin; }
.info p { margin: 0; }
.in-t { font: 700 18px/1.3 var(--f-disp); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.in-lv { font: 600 12px/1 var(--f-body); color: var(--gold); padding: 3px 7px; border: 1px solid rgba(240, 198, 116, 0.5); border-radius: 999px; }
.in-ok { display: inline-flex; align-items: center; gap: 3px; font: 600 12px/1 var(--f-body); color: var(--ok); }
.in-ok svg { width: 14px; height: 14px; }
.in-s { color: var(--ink-2); font-size: 13.5px; }
.in-s .st-ic { vertical-align: -2px; margin-right: 5px; }
.in-s b { color: var(--ink); }
.in-m { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.in-m.ok { color: var(--ok); font-weight: 600; }
.in-m.bad { color: var(--bad); font-weight: 600; }
.qz { display: flex; flex-wrap: wrap; gap: 6px; }
.qb { min-height: 38px; padding: 6px 14px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--bg-3); color: var(--ink); font-weight: 600; font-size: 14px; white-space: normal; text-align: left; line-height: 1.3; }
.qb:hover:not(:disabled) { border-color: var(--gold); }
.qb.ok { border-color: var(--ok); color: var(--ok); opacity: 1; }
.qb.bad { border-color: var(--bad); color: var(--bad); }
.sc { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.sc th, .sc td { padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: right; white-space: nowrap; }
.sc th:first-child { text-align: left; color: var(--ink-3); font-weight: 600; }
.sc thead th { color: var(--ink-2); font-weight: 700; }
.sc thead th .st-ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
.sc tr.tot th, .sc tr.tot td { color: var(--ink); font-weight: 700; border-bottom: 0; font-size: 15px; }
.sc-s th, .sc-s td { padding: 4px 6px; font-size: 13px; }
.bd.port .info { padding: 8px 10px; gap: 5px; }
.bd.port .in-t { font-size: 16px; }
.bd.port .in-m { font-size: 13px; line-height: 1.5; }
.bd.port .qb { min-height: 34px; padding: 4px 12px; font-size: 13px; }

/* 아래 버튼 줄 */
.acts { position: absolute; z-index: 2; display: flex; gap: 6px; }
.acts .tb { position: relative; flex: 1; height: 100%; min-width: 0; padding: 0 4px; font-size: 12px; background: var(--bg-2); flex-direction: column; gap: 2px; }
.acts .tb svg { width: 16px; height: 16px; }
.acts .tb .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.acts .tb.icon { flex: 0 0 auto; width: 44px; }
.acts .tb.pri { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.acts .tb.pri.dim { background: var(--bg-2); color: var(--ink-3); border-color: var(--line); }
.acts .tb.put { flex: 1.7; }
.acts .tb.tg[aria-pressed="true"] { color: var(--gold); border-color: rgba(240, 198, 116, 0.6); }
.bd.port .acts .tb { gap: 3px; }
.bd.port .acts .tb svg { width: 18px; height: 18px; }
.bd.short.land .acts .tb:not(.icon) .ic { display: none; }

/* 덮는 화면들 */
.scr { position: absolute; left: 0; right: 0; bottom: 0; top: 46px; z-index: 8; overflow-y: auto; background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.bd.short .scr { top: 40px; }
.scr-res { background: rgba(16, 18, 24, 0.9); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ghost { height: 36px; padding: 0 14px; border-radius: var(--r1); border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.pri { height: 40px; padding: 0 20px; border-radius: var(--r2); border: 1px solid var(--acc); background: var(--acc); color: var(--acc-ink); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pri svg { width: 16px; height: 16px; }
.pri:hover { filter: brightness(1.07); }

/* 첫 화면: 왼쪽 큰 제목, 오른쪽 모드 목록 */
.home { min-height: 100%; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); grid-template-rows: 1fr auto; gap: var(--s3) clamp(var(--s4), 4vw, var(--s7)); padding: clamp(var(--s4), 4vh, var(--s7)) clamp(var(--s4), 5vw, var(--s8)); align-content: center; }
.home-hd { grid-row: 1; align-self: center; border-left: 3px solid var(--wood); padding-left: var(--s4); }
.home-r { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; }
.home-k { display: block; width: 52px; height: 52px; margin: 0 0 var(--s3); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
.home-t { margin: 0; font: 700 clamp(56px, 12vmin, 112px)/1 var(--f-disp); letter-spacing: 0.02em; font-style: normal; }
.home-s { margin: var(--s3) 0 0; color: var(--ink-2); font-size: 14px; max-width: 23em; }
.modes { display: flex; flex-direction: column; gap: var(--s2); }
.mrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: center; text-align: left; padding: 10px 14px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); white-space: normal; transition: border-color .15s, transform .25s var(--ease), background .15s; }
.mrow .mi { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--wood); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); color: #3a2510; }
.mrow .mi svg { width: 24px; height: 24px; }
.mrow .mi .st-ic { width: 26px; height: 26px; }
.mrow .mt { display: flex; flex-direction: column; min-width: 0; }
.mrow b { font: 700 18px/1.3 var(--f-disp); white-space: nowrap; }
.mrow small { color: var(--ink-3); font-size: 13px; margin-top: 1px; }
.mrow .mx { color: var(--gold); font-size: 12px; font-weight: 700; white-space: nowrap; }
.mrow:hover { border-color: var(--acc); transform: translateX(3px); background: var(--bg-3); }
.mrow[data-m="resume"] { border-color: rgba(217, 65, 90, 0.6); }
.home-ft { grid-column: 1 / -1; grid-row: 2; display: flex; gap: var(--s2); flex-wrap: wrap; }
.bd.port .home { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-items: start; align-content: start; padding-top: var(--s4); row-gap: var(--s3); }
.bd.port .home-hd, .bd.port .home-r { grid-column: 1; grid-row: auto; }
.bd.port .home-ft { grid-row: auto; }
.bd.port .home-k, .bd.short .home-k { display: none; }
.bd.port .home-t { font-size: 46px; }
.bd.port .home-s { margin-top: 6px; font-size: 13px; }
.bd.port .mrow { padding: 8px 12px; }
.bd.port .mrow b { font-size: 16px; }
.bd.short .home { padding-top: var(--s2); padding-bottom: var(--s2); row-gap: var(--s2); }
.bd.short .modes { gap: 5px; }
.bd.short .mrow { padding: 5px 12px; }
.bd.short .mrow b { font-size: 15px; }
.bd.short .mrow .mi { width: 28px; height: 28px; }
.bd.short .mrow .mi svg, .bd.short .mrow .mi .st-ic { width: 20px; height: 20px; }
.bd.short .home-t { font-size: 50px; }
.bd.short .home-s { font-size: 13px; }

/* 대국 준비 */
.setup, .lst { max-width: 760px; margin: 0 auto; padding: var(--s5) clamp(var(--s4), 4vw, var(--s6)) 0; }
.su-hd h3, .lst-hd h3 { margin: 0; font: 700 26px/1.2 var(--f-disp); }
.su-hd p, .lst-hd p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.su-row, .set-row { margin-top: var(--s4); }
.su-k { margin: 0 0 var(--s2); font-weight: 700; font-size: 14px; }
.su-n { margin: var(--s2) 0 0; color: var(--ink-3); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-3); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.su-ft { position: sticky; bottom: 0; margin-top: var(--s4); padding: 22px 0 var(--s3); display: flex; justify-content: space-between; gap: var(--s2); background: linear-gradient(rgba(26, 29, 37, 0) 0, var(--bg) 20px); z-index: 2; }
.vol { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); color: var(--ink-2); font-size: 13px; }
.vol input { flex: 1; max-width: 260px; accent-color: var(--acc); }

/* 문제·강의 목록 */
.today { width: 100%; margin-top: var(--s4); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: var(--r2); border: 1px solid rgba(240, 198, 116, 0.5); background: var(--bg-2); color: var(--ink); white-space: normal; }
.today-k { grid-row: 1 / span 2; padding: 6px 9px; border-radius: var(--r1); background: var(--gold); color: #2b1f08; font-size: 12px; font-weight: 700; white-space: nowrap; }
.today b { font: 700 17px/1.3 var(--f-disp); }
.today small { color: var(--ink-3); font-size: 13px; }
.today:hover { border-color: var(--gold); }
.pz-grp { margin-top: var(--s4); }
.pz-gt { margin: 0 0 var(--s2); font-weight: 700; color: var(--ink-2); }
.pz-gt small { color: var(--ink-3); font-weight: 600; font-size: 12px; margin-left: 4px; }
.pz-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.pzb { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); }
.pzb b { font: 700 17px/1.1 var(--f-disp); }
.pzb small { font-size: 12px; color: var(--ink-3); }
.pzb:hover { border-color: var(--acc); }
.pzb.ok { border-color: rgba(159, 215, 176, 0.55); }
.pzb.ok small { color: var(--ok); }
.ls-list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.lsb { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; align-items: center; text-align: left; padding: 9px 12px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); white-space: normal; }
.ls-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); font: 700 14px/1 var(--f-disp); color: var(--ink-2); }
.ls-t { display: flex; flex-direction: column; min-width: 0; }
.ls-t b { font: 700 16px/1.3 var(--f-disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-t small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-ok { color: var(--ok); display: inline-flex; }
.ls-ok svg { width: 18px; height: 18px; }
.lsb:hover { border-color: var(--acc); }
.lsb.ok .ls-n { background: rgba(159, 215, 176, 0.18); color: var(--ok); }
.lst-ft { margin: var(--s5) 0 var(--s4); }

/* 결과 */
.res { min-height: 100%; display: grid; place-items: center; padding: var(--s4); }
.res-card { width: min(460px, 100%); padding: var(--s5); border-radius: var(--r3); background: var(--bg-2); border: 1px solid var(--line); text-align: center; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); animation: cardIn .45s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.res-k { margin: 0; color: var(--ink-3); font-size: 13px; }
.res-t { margin: 6px 0 2px; font: 700 36px/1.2 var(--f-disp); }
.res-o { margin: 0 0 var(--s3); font-weight: 700; font-size: 15px; }
.res-o.win { color: var(--gold); }
.res-o.lose { color: var(--ink-2); }
.res-why { margin: var(--s2) 0 0; color: var(--ink-2); font-size: 14px; }
.res-card .sc { margin: var(--s3) 0 0; }
.res-b { margin-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.res-b .ghost { height: 40px; }
.bd.port .res-t { font-size: 30px; }
.bd.short .res-card { padding: var(--s2) var(--s4) var(--s3); }
.bd.short .res-t { font-size: 26px; margin-top: 2px; }
.bd.short .res-o { margin-bottom: 4px; }
.bd.short .res-b { margin-top: var(--s2); }
.bd.short .res-b .pri, .bd.short .res-b .ghost { height: 34px; padding: 0 12px; }
.bd.short .res-card .sc th, .bd.short .res-card .sc td { padding: 3px 8px; }

/* 창 */
.modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: var(--s3); background: rgba(8, 9, 12, 0.62); }
.mbox { width: min(560px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: var(--r3); background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); overflow: hidden; }
.mbox-s { width: min(400px, 100%); }
.mhead { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mtitle { margin: 0; font: 700 19px/1.2 var(--f-disp); }
.x { height: 32px; padding: 0 12px; border-radius: var(--r1); border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.mbody { padding: 12px 16px 16px; overflow-y: auto; scrollbar-width: thin; }
.mbody h4 { margin: var(--s4) 0 var(--s2); font-size: 13px; color: var(--gold); letter-spacing: 0.02em; }
.mbody h4:first-child { margin-top: 0; }
.mbody .keytab th, .mbody .keytab td { border-bottom-color: rgba(255, 255, 255, 0.08); color: var(--ink-2); }
.mbody .keytab th { color: var(--ink); }
.hl { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.hl li { margin: 5px 0; }
.m-note { margin: var(--s3) 0 0; color: var(--ink-3); font-size: 13px; }
.mkibo .m-note { margin-top: 0; }
.sgf { width: 100%; height: 150px; margin-top: var(--s2); padding: 8px 10px; border-radius: var(--r1); border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; -webkit-user-select: text; user-select: text; }
.mrow-btns { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ask-t { margin: 0 0 6px; font: 700 19px/1.3 var(--f-disp); }
#askBody p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------------------------------------------------------------- 소개 글 */
.about { max-width: 1240px; margin: 0 auto; padding: clamp(var(--s6), 6vw, var(--s8)) clamp(var(--s4), 4vw, var(--s6)); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s7); }
.about-main { max-width: 720px; }
.about h2 { margin: var(--s7) 0 var(--s3); font: 700 clamp(25px, 3vw, 31px)/1.3 var(--f-disp); font-style: normal; }
.about h2:first-child { margin-top: 0; }
.about h3 { margin: var(--s5) 0 var(--s2); font: 700 17px/1.4 var(--f-body); }
.about p { margin: 0 0 var(--s3); }
.about ol, .about ul { margin: 0 0 var(--s3); padding-left: 22px; }
.about li { margin: 6px 0; }
.about strong { font-weight: 700; }
.about dl { margin: 0; }
.about dt { margin-top: var(--s4); font-weight: 700; }
.about dd { margin: 4px 0 0; color: var(--page-2); }
.about .more { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--page-line); font-size: 14px; color: var(--page-2); line-height: 1.9; }
.about .more a { color: var(--page-ink); }
.about-side { position: sticky; top: var(--s4); align-self: start; padding: var(--s4); border-left: 3px solid var(--page-acc); background: rgba(255, 255, 255, 0.5); }
.about-side h3 { margin: var(--s4) 0 var(--s2); font: 700 18px/1.3 var(--f-disp); }
.about-side h3:first-child { margin-top: 0; }
.about-side .keytab th { white-space: nowrap; }
.keytab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.keytab th, .keytab td { padding: 6px 0; border-bottom: 1px solid var(--page-line); text-align: left; vertical-align: top; }
.keytab th { font-weight: 600; padding-right: 10px; color: var(--page-ink); }
.keytab td { color: var(--page-2); }
.rtab { width: 100%; border-collapse: collapse; font-size: 14px; margin: var(--s2) 0 var(--s3); }
.rtab th, .rtab td { padding: 8px 10px; border-bottom: 1px solid var(--page-line); text-align: left; }
.rtab thead th { font-weight: 700; border-bottom: 2px solid var(--page-ink); }
.rtab td:first-child { font-weight: 600; white-space: nowrap; }
.rtab-wrap { overflow-x: auto; }
.nojs { padding: var(--s5); color: var(--ink); }
.foot { max-width: 1240px; margin: 0 auto; padding: var(--s5) clamp(var(--s4), 4vw, 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; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: var(--s5); }
  .about-side { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
