/* PLAYORA 오목 */
:root {
  --bg: #1f1b17; --bg-2: #28231e; --bg-3: #322c26; --line: #463e35; --ink: #f4eee4; --ink-2: #cfc5b6; --ink-3: #a09484;
  --acc: #e0502f; --acc-ink: #fff6ef; --ok: #9fd7a4; --bad: #f2917c; --gold: #f0c674;
  --page: #f6f1e7; --page-ink: #231f1a; --page-2: #5d544a; --page-line: #e2d9c8; --page-acc: #b9391c;
  --f-body: "IBM Plex Sans KR", "Pretendard", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  --f-disp: "Diphylleia", "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.225 0.012 60); --bg-2: oklch(0.255 0.014 60); --bg-3: oklch(0.295 0.016 60); --line: oklch(0.385 0.02 62);
    --ink: oklch(0.955 0.013 80); --ink-2: oklch(0.83 0.022 78); --ink-3: oklch(0.67 0.028 75);
    --acc: oklch(0.63 0.18 36); --gold: oklch(0.84 0.11 82);
    --page: oklch(0.965 0.013 85); --page-ink: oklch(0.25 0.012 65); --page-2: oklch(0.46 0.02 65); --page-line: oklch(0.89 0.02 80); --page-acc: oklch(0.52 0.17 36);
  }
}
* { 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: 400 clamp(34px, 4.4vw, 46px)/1.05 var(--f-disp); letter-spacing: -0.01em; font-style: normal; }
.head h1 .seal { display: inline-block; vertical-align: 0.18em; margin-left: 10px; padding: 3px 7px 4px; border: 2px solid var(--page-acc); border-radius: 4px; color: var(--page-acc); font: 700 13px/1 var(--f-body); letter-spacing: 0.04em; }
.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)); }

/* ---------------------------------------------------------------- 게임 무대 */
.om { position: relative; width: 100%; height: clamp(460px, calc(100svh - 132px), 880px); 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;
  background-image: radial-gradient(120% 90% at 22% 12%, rgba(240, 200, 150, 0.06), rgba(0, 0, 0, 0) 62%); }
@media (max-width: 640px) { .om { border-radius: 0; height: min(82svh, 760px); min-height: 520px; } .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 .om { position: fixed; inset: 0; width: auto; height: auto; min-height: 0; border-radius: 0; }
.om button:focus-visible, .om input:focus-visible, .om canvas: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)); }

/* 위 막대 */
.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); }
.om.short .bar { height: 40px; }
.bar-l { display: flex; align-items: baseline; gap: var(--s2); min-width: 0; flex: 1; overflow: hidden; }
.bar-t { font: 400 22px/1 var(--f-disp); letter-spacing: 0.02em; 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); } }
.om.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 22px 44px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4); }
.om.four .bw canvas { box-shadow: none; }
.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.3em; font: 400 clamp(26px, 7vmin, 52px)/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.04em; }
.stamp.on { animation: stampIn 1.1s var(--ease) forwards; }
.stamp.on.hold { animation: none; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.stamp.big b { font-size: clamp(34px, 9.5vmin, 76px); }
.stamp.draw b { background: var(--bg-3); color: var(--ink); border: 1px solid var(--line); }
.stamp.good b { background: var(--gold); color: #2b1f08; }
@keyframes stampIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); }
  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: 9%; transform: translate(-50%, 8px); max-width: 92%; padding: 9px 14px; border-radius: 12px; background: rgba(18, 15, 12, 0.93); 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.4; }
.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 .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 .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 .clk { padding: 4px 8px; border-radius: var(--r1); background: var(--bg); font: 600 15px/1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.pl.turn .clk { background: var(--ink); color: var(--bg); }
.pl .clk.low { color: #fff; background: var(--acc) !important; }
.pl.turn { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 18px -6px rgba(240, 198, 116, 0.55); }
.say { position: absolute; left: 52px; top: -30px; max-width: calc(100% - 60px); padding: 5px 10px; border-radius: 12px; background: #f7f1e6; color: #221d18; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease); pointer-events: none; z-index: 5; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.say.on { opacity: 1; transform: none; }
#plBot .say { top: auto; bottom: calc(100% + 6px); }
.om.land #plTop .say { top: calc(100% + 6px); }
.om.port .pl { padding: 4px 8px; column-gap: 8px; }
.om.port .pl .av { width: 32px; height: 32px; }
.om.port .pl .av .st-ic { width: 25px; height: 25px; }
.om.port .pl .pn b { font-size: 13px; }
.om.port .pl .pn small { font-size: 12px; }
.om.port .say { left: 40px; }
.om.port #plTop .say { top: calc(100% + 6px); }

/* 기보 */
.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: 400 17px/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: #141210; color: #f3eee6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.mv .m.w i { background: #efe9de; color: #26211c; }
.mv .m:hover { border-color: var(--ink-3); }
.mv .m.cur { border-color: var(--acc); background: rgba(224, 80, 47, 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; gap: 5px; font-size: 12px; font-weight: 600; }
.rb svg { width: 15px; height: 15px; }
.rb:hover { color: var(--ink); border-color: var(--ink-3); }
.rb.live { margin-left: auto; background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.rb.wide { flex: 1; }
.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: 6px; padding: 10px 12px; 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: 400 19px/1.25 var(--f-disp); }
.in-s { color: var(--ink-3); font-size: 13px; }
.in-s b { color: var(--gold); }
.in-m { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.in-m.ok { color: var(--ok); font-weight: 700; }
.om.port .info { padding: 8px 10px; gap: 3px; }
.om.port .in-t { font-size: 16px; }
.om.port .in-m { font-size: 13px; line-height: 1.45; }

/* 아래 버튼 줄 */
.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.put { flex: 1.6; }
.acts .tb.tog.on { color: var(--gold); border-color: rgba(240, 198, 116, 0.6); }
.om.port .acts .tb { gap: 3px; }
.om.port .acts .tb svg { width: 18px; height: 18px; }
.om.short.land .acts .tb:not(.icon) .ic { display: none; } /* 아이콘만 있는 단추(수순)는 아이콘을 남김 */
.acts .rv-n { flex: 1.2; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.emotes { position: absolute; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.emo { flex: 1 0 auto; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-size: 13px; font-weight: 600; }
.emo:hover { border-color: var(--acc); }

/* 덮는 화면들 */
.scr { position: absolute; left: 0; right: 0; bottom: 0; top: 46px; z-index: 8; overflow-y: auto; background: rgba(22, 19, 16, 0.92); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.om.short .scr { top: 40px; }
.scr-home { background: var(--bg); background-image: radial-gradient(90% 70% at 18% 20%, rgba(217, 169, 97, 0.12), rgba(0, 0, 0, 0) 65%); }
.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); }
.ghost.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.big { height: 44px; padding: 0 22px; border-radius: var(--r2); border: 0; background: var(--acc); color: var(--acc-ink); font-size: 15px; font-weight: 700; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.big:hover { filter: brightness(1.06); }
.big:active { transform: translateY(1px); }

/* 첫 화면: 왼쪽 제목, 오른쪽 모드 목록 */
.home { min-height: 100%; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); 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; }
.home-r { grid-column: 2; grid-row: 1; align-self: center; display: flex; flex-direction: column; gap: var(--s3); min-width: 0; } /* 탭·모드 묶음을 왼쪽 제목과 같은 높이 가운데에 */
.home-k { display: block; width: 56px; height: 56px; margin: 0 0 var(--s4); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
.home-t { margin: 0; font: 400 clamp(52px, 11vmin, 104px)/1 var(--f-disp); letter-spacing: -0.01em; }
.home-s { margin: var(--s3) 0 0; color: var(--ink-2); font-size: 14px; max-width: 22em; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: var(--r2); background: var(--bg-2); border: 1px solid var(--line); }
.tab { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 7px 10px; border: 0; border-radius: var(--r1); background: transparent; color: var(--ink-2); font: 400 19px/1.1 var(--f-disp); }
.tab .st-ic { grid-row: 1 / span 2; width: 24px; height: 24px; }
.tab small { font: 500 12px/1.3 var(--f-body); color: var(--ink-3); }
.tab.on { background: var(--bg-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tab.on small { color: var(--gold); }
.modes { display: flex; flex-direction: column; gap: var(--s2); }
.mrow { display: grid; grid-template-columns: auto minmax(0, 1fr); 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 { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #c99550; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.mrow .mi svg { width: 28px; height: 28px; color: #3a2510; }
.mrow b { font: 400 19px/1.25 var(--f-disp); white-space: nowrap; }
.mrow span:last-child { color: var(--ink-3); font-size: 13px; margin-top: 1px; }
.mrow:hover { border-color: var(--acc); transform: translateX(3px); background: var(--bg-3); }
.mrow.cont { border-color: rgba(224, 80, 47, 0.6); background: linear-gradient(90deg, rgba(224, 80, 47, 0.16), rgba(224, 80, 47, 0.02)); }
.home-ft { grid-column: 1 / -1; grid-row: 2; display: flex; gap: var(--s2); flex-wrap: wrap; }
.om.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); }
.om.port .home-hd, .om.port .home-r { grid-column: 1; grid-row: auto; }
.om.port .home-ft { grid-row: auto; }
.om.port .home-k, .om.short .home-k { display: none; }
.om.port .home-t { font-size: 48px; }
.om.port .home-s { margin-top: 6px; font-size: 13px; }
.om.port .mrow { padding: 8px 12px; }
.om.port .mrow b { font-size: 17px; }
.om.short .home { padding-top: var(--s2); padding-bottom: var(--s2); row-gap: var(--s2); }
.om.short .home-r { gap: var(--s2); }
.om.short .mrow { padding: 6px 12px; }
.om.short .mrow b { font-size: 16px; }
.om.short .mrow .mi { width: 30px; height: 30px; }
.om.short .home-t { font-size: 52px; }
.om.short .tab small { display: none; }

/* 대국 준비 */
.setup, .pzl { max-width: 760px; margin: 0 auto; padding: var(--s5) clamp(var(--s4), 4vw, var(--s6)) 0; }
.su-hd h3, .pz-hd h3 { margin: 0; font: 400 28px/1.2 var(--f-disp); }
.su-hd p, .pz-hd p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.su-sec { margin-top: var(--s5); }
.su-l { margin: 0 0 var(--s2); font-weight: 700; font-size: 14px; }
.su-l.sub { margin-top: var(--s3); font-size: 13px; color: var(--ink-2); }
.su-d { 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 b { font: 600 12px/1 var(--f-body); color: var(--ink-3); }
.chip .st-ic { width: 18px; height: 18px; }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.on b { color: var(--acc); }
.thm { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
.thm i { width: 10px; height: 2px; display: block; }
.su-me { margin-top: var(--s4); display: flex; align-items: center; gap: var(--s3); padding: 10px 12px; border-radius: var(--r2); background: var(--bg-2); border: 1px solid var(--line); }
.su-me .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); flex: none; }
.su-me .av .st-ic { width: 30px; height: 30px; }
.su-me span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.su-me small { color: var(--ink-3); font-size: 12px; }
.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(22, 19, 16, 0) 0, rgba(22, 19, 16, 0.98) 20px); z-index: 2; }

/* 상대 찾기 · 대기실 */
.find { max-width: 760px; margin: 0 auto; padding: var(--s5) clamp(var(--s4), 4vw, var(--s6)); display: flex; flex-direction: column; gap: var(--s4); }
.find-top { display: flex; align-items: center; gap: var(--s3); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--acc); animation: spin .9s linear infinite; flex: none; }
.om.found .spin { animation: none; border-color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
.find-msg { margin: 0; font: 400 20px/1.3 var(--f-disp); flex: 1; }
.find-time { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s3); align-items: stretch; }
.vs:empty { display: none; }
.vs-x { align-self: center; font: 400 24px/1 var(--f-disp); color: var(--ink-3); }
.vc { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: var(--r2); background: var(--bg-2); border: 1px solid var(--line); animation: vcIn .45s var(--ease) both; min-width: 0; }
.vc + .vs-x + .vc { animation-delay: .25s; }
.vc .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; background: var(--bg-3); }
.vc .av .st-ic { width: 34px; height: 34px; }
.vc.me { border-color: rgba(240, 198, 116, 0.55); }
.vn { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr { font-weight: 600; color: var(--ink-2); font-size: 13px; }
.vw, .vs-st { color: var(--ink-3); font-size: 12px; }
.vside { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--gold); }
.vc .say { left: auto; right: 8px; top: 8px; max-width: calc(100% - 56px); }
@keyframes vcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.find-note { margin: 0; color: var(--ink-3); font-size: 13px; }
.find-ft { display: flex; justify-content: flex-start; }
.om.port .find { padding: var(--s3) var(--s3) var(--s4); gap: var(--s3); }
.om.port .vs { gap: 6px; }
.om.port .vc { padding: 10px; gap: 2px; }
.om.port .vc .av { width: 32px; height: 32px; margin-bottom: 2px; }
.om.port .vc .av .st-ic { width: 26px; height: 26px; }
.om.port .vn { font-size: 14px; }
.om.port .vr { font-size: 12px; }
.om.port .vs-x { font-size: 16px; }
.om.port .vs-st { display: none; }

/* 묘수 목록 */
.pz-cnt { color: var(--gold) !important; font-weight: 700; }
.pz-g { margin: var(--s5) 0 var(--s2); font-weight: 700; color: var(--ink-2); }
.pz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pzt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 7px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); }
.pzt canvas { width: 100%; max-width: 96px; aspect-ratio: 1; border-radius: 4px; display: block; }
.pzt span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pzt:hover { border-color: var(--acc); }
.pzt.done { border-color: rgba(159, 215, 164, 0.55); }
.pzt.done span { color: var(--ok); }

/* 결과 */
.res { min-height: 100%; display: grid; place-items: center; padding: var(--s4); }
.res-card { width: min(440px, 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: vcIn .45s var(--ease) both; }
.res-k .st-ic { width: 54px; height: 54px; }
.res-t { margin: 6px 0 2px; font: 400 40px/1.15 var(--f-disp); }
.res-card.win .res-t { color: var(--gold); }
.res-card.lose .res-t { color: var(--ink-2); }
.res-why { margin: 0; color: var(--ink-2); font-size: 14px; }
.res-st { margin: var(--s4) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; text-align: left; }
.res-st div { padding: 7px 10px; border-radius: var(--r1); background: var(--bg-3); }
.res-st dt { color: var(--ink-3); font-size: 12px; }
.res-st dd { margin: 0; font-weight: 700; font-size: 14px; }
.rate { margin-top: var(--s4); padding: 10px 12px; border-radius: var(--r2); border: 1px solid var(--line); }
.rate p { margin: 0; }
.rate-n { font-size: 15px; }
.rate-n b { font-size: 20px; margin: 0 6px; }
.rate-n .up { color: var(--ok); font-weight: 700; }
.rate-n .dn { color: var(--bad); font-weight: 700; }
.rate-r { color: var(--ink-2); font-size: 13px; }
.res-b { margin-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.res-b button:not(.big) { height: 44px; padding: 0 16px; border-radius: var(--r2); border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; }
.res-b button:not(.big):hover { border-color: var(--ink-3); }
.om.port .res-t { font-size: 34px; }
.om.short .res-card { padding: var(--s3) var(--s4); }
.om.short .res-k { display: none; }

/* 모달 */
.modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: var(--s3); background: rgba(10, 8, 6, 0.6); }
.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: 400 21px/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; }
.sh { margin: var(--s4) 0 var(--s2); font-weight: 700; color: var(--gold); font-size: 13px; letter-spacing: 0.02em; }
.sh:first-child { margin-top: 0; }
.srow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.sl { margin: 0; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; }
.sl small { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.srow input[type=range] { flex: 1; min-width: 140px; accent-color: var(--acc); }
.vv { width: 32px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.sfoot { margin: var(--s4) 0 0; color: var(--ink-3); font-size: 12px; }
.hu { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.hu li { margin: 4px 0; }
.hl { margin: 0; color: var(--ink-2); font-size: 14px; }
.hl dt { font-weight: 700; color: var(--ink); margin-top: 6px; }
.hl dd { margin: 2px 0 0; }
.rt { width: 100%; border-collapse: collapse; font-size: 13px; }
.rt th, .rt td { padding: 5px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); text-align: right; }
.rt th:first-child, .rt td:first-child { text-align: left; }
.rp { margin: 0; color: var(--ink-2); font-size: 14px; }
.rh { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.rh li { display: flex; gap: 8px; padding: 3px 0; }
.rh li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.rh .w { color: var(--ok); font-weight: 700; } .rh .l { color: var(--bad); font-weight: 700; } .rh .d { color: var(--ink-3); font-weight: 700; }
.mkibo .mv { max-height: 46vh; }
.rev-m { border-top: 0; padding: 8px 0 0; }
.kbtn { display: flex; gap: 6px; padding-top: 8px; }
.ask-t { margin: 0 0 6px; font: 400 21px/1.25 var(--f-disp); }
.ask-x p { margin: 0; color: var(--ink-2); font-size: 14px; }
.ask-x input { width: 100%; height: 40px; margin-top: 4px; padding: 0 10px; border-radius: var(--r1); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 15px/1 var(--f-body); }
.ask-x small { display: block; margin-top: 6px; color: var(--ink-3); font-size: 12px; }
.ask-b { margin-top: var(--s4); display: flex; gap: 6px; justify-content: flex-end; }
.ask-b button { height: 38px; padding: 0 16px; border-radius: var(--r1); border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 600; }
.ask-b .pri { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.ask-b .danger { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }

/* ---------------------------------------------------------------- 소개 글 */
.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: 400 clamp(26px, 3vw, 32px)/1.25 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.45); }
.about-side h3 { margin: var(--s4) 0 var(--s2); font: 400 19px/1.3 var(--f-disp); }
.about-side h3:first-child { margin-top: 0; }
.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; }
}
