:root {
  --bg: #0f1d15; --panel: #1a2b21; --panel2: #23392c; --line: rgba(253, 230, 138, 0.16);
  --text: #f6f3e8; --dim: #a9b8a8; --accent: #f87171; --accent2: #fcd34d; --bad: #f87171; --gold: #facc15; --ok: #4ade80;
  --r: 16px;
  /* 판 꾸미기 */
  --mat: #1f6b45; --mat2: #17573a; --mat-line: rgba(0, 0, 0, 0.25); --back: #b91c1c; --back2: #7f1d1d;
  --cw: 52px; /* 손패 카드 너비 (main.js가 화면에 맞춰 바꿈) */
  --fw: 40px; /* 바닥 카드 */
  --sw: 22px; /* 먹은 패 */
}
body.t-ondol { --mat: #c08a3e; --mat2: #a8742f; --mat-line: rgba(80, 40, 0, 0.3); }
body.t-najeon { --mat: #2a1a14; --mat2: #1d120d; --mat-line: rgba(167, 139, 250, 0.25); --back: #1e3a8a; --back2: #172554; }
body.t-night { --mat: #1b2145; --mat2: #131838; --mat-line: rgba(253, 230, 138, 0.25); --back: #6d28d9; --back2: #3b0764; }
body.t-gold { --mat: #4a3a10; --mat2: #33280a; --mat-line: rgba(250, 204, 21, 0.45); --back: #a16207; --back2: #713f12; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(circle at 50% 0%, #22402f 0%, var(--bg) 60%, #070e0a 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  display: flex; flex-direction: column; overflow: hidden;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.45; }
[hidden] { display: none !important; }

.topbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); color: #7dd3fc;
  text-decoration: none; font-size: 0.85rem; font-weight: 700;
}
.back-btn:hover { background: rgba(56, 189, 248, 0.22); }
.total { margin-left: auto; font-weight: 800; }
.tools { display: flex; gap: 6px; }
.mini { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-weight: 800; }

/* ── 화투 패 ── */
.hc {
  --w: var(--cw); position: relative; width: var(--w); height: calc(var(--w) * 1.6); flex: none; border-radius: calc(var(--w) * 0.1);
  background: linear-gradient(180deg, #fffaf0 0%, #fbeed2 100%); border: 1px solid #5b1a12;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), inset 0 0 0 calc(var(--w) * 0.05) var(--mc, #7f1d1d);
  overflow: hidden; display: block; padding: 0; color: #1f1309;
}
.hc .art { position: absolute; left: 0; right: 0; top: 22%; text-align: center; font-size: calc(var(--w) * 0.5); line-height: 1; }
.hc.kP .art { top: 34%; font-size: calc(var(--w) * 0.42); opacity: 0.9; }
.hc .mo { position: absolute; left: calc(var(--w) * 0.1); top: calc(var(--w) * 0.08); font-size: calc(var(--w) * 0.24); font-weight: 900; color: var(--mc, #7f1d1d); line-height: 1; }
.hc .gw { position: absolute; right: calc(var(--w) * 0.08); top: calc(var(--w) * 0.08); width: calc(var(--w) * 0.34); height: calc(var(--w) * 0.34); border-radius: 50%;
  background: #dc2626; color: #fff; font-size: calc(var(--w) * 0.22); font-weight: 900; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 1px #fff; }
.hc .gw.rain { background: #475569; }
.hc .rib { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); width: 32%; height: 52%; border-radius: 2px;
  background: #dc2626; color: #fff; font-size: calc(var(--w) * 0.17); font-weight: 900; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; letter-spacing: 1px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.hc .rib.cheong { background: #1d4ed8; }
.hc .rib.plain { background: #b91c1c; opacity: 0.85; }
.hc.kT .art { top: 6%; font-size: calc(var(--w) * 0.36); }
.hc .ss { position: absolute; right: calc(var(--w) * 0.06); bottom: calc(var(--w) * 0.06); padding: 0 calc(var(--w) * 0.05); border-radius: 4px; background: #111827; color: #fde68a; font-size: calc(var(--w) * 0.2); font-weight: 900; line-height: 1.3; }
.hc .yb { position: absolute; left: calc(var(--w) * 0.08); bottom: calc(var(--w) * 0.06); font-size: calc(var(--w) * 0.18); font-weight: 900; color: #92400e; }
.hc.m1 { --mc: #15803d; } .hc.m2 { --mc: #be185d; } .hc.m3 { --mc: #db2777; } .hc.m4 { --mc: #334155; }
.hc.m5 { --mc: #7c3aed; } .hc.m6 { --mc: #dc2626; } .hc.m7 { --mc: #b45309; } .hc.m8 { --mc: #4b5563; }
.hc.m9 { --mc: #ca8a04; } .hc.m10 { --mc: #c2410c; } .hc.m11 { --mc: #0f766e; } .hc.m12 { --mc: #1e3a8a; }
.hc.back { background: repeating-linear-gradient(45deg, var(--back) 0 4px, var(--back2) 4px 8px); border-color: #300; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.15); }
.hc.dummy { background: repeating-linear-gradient(-45deg, #9ca3af 0 5px, #6b7280 5px 10px); border-color: #374151; }
.hc.dummy .art { font-size: calc(var(--w) * 0.36); top: 30%; }
.hc.hl { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(250, 204, 21, 0.7); }
.hc.pick { box-shadow: 0 0 0 3px var(--ok), 0 0 16px rgba(74, 222, 128, 0.8); animation: pulse 0.9s ease-in-out infinite; cursor: pointer; }
.hc.new { animation: drop 0.28s ease-out; }
.hc.got { animation: got 0.6s ease-out; }
@keyframes drop { from { transform: translateY(-14px) scale(1.15); opacity: 0.3; } to { transform: none; opacity: 1; } }
@keyframes got { 0% { transform: scale(1.5); box-shadow: 0 0 0 3px var(--gold); } 100% { transform: none; } }
@keyframes pulse { 50% { transform: translateY(-3px); } }

/* ── 메뉴 ── */
.screen { flex: 1; overflow-y: auto; padding: 4px 16px 32px; }
.screen > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.logo { text-align: center; margin: 2px auto 12px; }
.logo-art { display: inline-flex; gap: 4px; --cw: 40px; }
.logo-art .hc { animation: fan 4s ease-in-out infinite; }
.logo-art .hc:nth-child(1) { transform: rotate(-12deg) translateY(4px); } .logo-art .hc:nth-child(3) { transform: rotate(12deg) translateY(4px); }
@keyframes fan { 50% { filter: brightness(1.12); } }
h1 { margin: 10px 0 2px; font-size: 1.6rem; letter-spacing: -0.02em; }
h1 span { color: var(--accent); }
.tagline { margin: 0; color: var(--dim); font-size: 0.9rem; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.tab { padding: 9px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.tab.on { background: var(--accent); color: #2a0606; border-color: var(--accent); }
.dim { color: var(--dim); }
.small { font-size: 0.82rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.btn { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); font-weight: 800; }
.btn.go { background: var(--accent); color: #2a0606; border-color: var(--accent); }
.btn.gold { background: var(--gold); color: #2a1a00; border-color: var(--gold); }
.btn.small { padding: 6px 10px; font-size: 0.85rem; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.continue {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 12px;
  border-radius: var(--r); border: 1px solid rgba(248, 113, 113, 0.5); background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(248, 113, 113, 0.05));
}
.continue .ci { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #2a0606; }
.continue b { display: block; } .continue small { color: var(--dim); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin: 8px 0; }
.kpis div { background: var(--panel2); border-radius: 12px; padding: 8px 2px; }
.kpis b { display: block; font-size: 1.15rem; } .kpis small { color: var(--dim); font-size: 0.72rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.cal span { aspect-ratio: 1; border-radius: 6px; background: var(--panel2); display: grid; place-items: center; font-size: 0.66rem; color: var(--dim); }
.cal .w { background: #15803d; color: #fff; font-weight: 800; } .cal .l { background: #7f1d1d; color: #fff; font-weight: 800; } .cal .t { outline: 2px solid var(--accent2); }
.town { margin-bottom: 12px; }
.town-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.town-h b { font-size: 1rem; } .town-h small { color: var(--dim); }
.town-h .zs { margin-left: auto; font-weight: 800; color: var(--accent2); font-size: 0.85rem; white-space: nowrap; }
.opps { display: grid; gap: 8px; }
.opp { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); text-align: left; width: 100%; }
.opp .oi { font-size: 1.9rem; width: 44px; text-align: center; flex: none; }
.opp .om { flex: 1; min-width: 0; }
.opp b { display: block; } .opp small { color: var(--dim); display: block; font-size: 0.76rem; }
.opp .os { color: var(--gold); font-size: 1rem; letter-spacing: 1px; white-space: nowrap; }
.opp.next { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25) inset; }
.opp.lock { opacity: 0.45; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 10px; }
.seg button { flex: 1; min-width: 56px; padding: 8px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); font-weight: 700; font-size: 0.82rem; }
.seg button.on { background: var(--accent); color: #2a0606; border-color: var(--accent); }
.lbl { font-weight: 800; font-size: 0.85rem; margin-top: 4px; }
.lbl small { color: var(--dim); font-weight: 400; }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ach { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: var(--panel2); font-size: 0.8rem; }
.ach .ai { font-size: 1.3rem; } .ach b { display: block; font-size: 0.85rem; } .ach small { color: var(--dim); }
.ach.off { opacity: 0.45; filter: grayscale(1); }
.opt { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.opt:first-of-type { border-top: 0; }
.opt div { flex: 1; } .opt small { display: block; color: var(--dim); }
.sw { width: 50px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: #3b4a43; position: relative; flex: none; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.sw.on { background: #1f9d63; } .sw.on::after { transform: translateX(22px); }
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.th { padding: 6px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); font-size: 0.68rem; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.th i { width: 34px; height: 34px; border-radius: 8px; display: block; border: 2px solid rgba(0, 0, 0, 0.3); }
.th.on { border-color: var(--accent2); box-shadow: 0 0 0 2px rgba(252, 211, 77, 0.3) inset; }
.th-blanket { background: #1f6b45; } .th-ondol { background: #c08a3e; } .th-najeon { background: linear-gradient(135deg, #2a1a14, #4c1d95 60%, #0e7490); } .th-night { background: #1b2145; } .th-gold { background: linear-gradient(135deg, #4a3a10, #facc15); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; text-align: center; }
.stat-grid div { background: var(--panel2); border-radius: 10px; padding: 6px 2px; font-size: 0.72rem; color: var(--dim); }
.stat-grid b { display: block; font-size: 1rem; color: var(--text); }
.money { font-size: 1.4rem; font-weight: 900; color: var(--gold); }

/* ── 판 ── */
#play { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-bottom: max(6px, env(safe-area-inset-bottom)); max-width: 620px; width: 100%; margin: 0 auto; }
.p-head { display: flex; align-items: center; gap: 8px; padding: 0 10px 4px; }
.p-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .p-title small { color: var(--dim); font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 10px; margin: 0 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); transition: box-shadow 0.2s, border-color 0.2s; min-height: 42px; }
.side.on { border-color: var(--accent2); box-shadow: 0 0 0 2px rgba(252, 211, 77, 0.25); }
.who { display: flex; align-items: center; gap: 6px; min-width: 0; flex: none; max-width: 46%; }
.who .ava { font-size: 1.5rem; }
.who b { display: block; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; color: var(--dim); font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backs { flex: 1; display: flex; justify-content: center; min-width: 0; overflow: hidden; padding: 2px 0; --cw: 16px; }
.backs .hc { margin-left: -6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.backs .hc:first-child { margin-left: 0; }
.pts { margin-left: auto; min-width: 46px; padding: 3px 8px; border-radius: 10px; background: #0b1510; border: 1px solid var(--line); text-align: center; font-weight: 900; font-size: 1.05rem; color: var(--accent2); }
.pts small { font-size: 0.6rem; color: var(--dim); font-weight: 700; margin-left: 1px; }
.pts.hot { color: #fff; background: #b91c1c; border-color: #fca5a5; }
.msg { flex: 1; text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--accent2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.think::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dots 1s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.hintb { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); font-size: 1rem; flex: none; }
.hintb.used { border-color: var(--gold); }

.caps { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 3px 10px; min-height: calc(var(--sw) * 1.6 + 6px); align-items: flex-start; }
.cg { display: flex; align-items: flex-start; gap: 2px; --cw: var(--sw); }
.cg .stk { display: flex; }
.cg .stk .hc { margin-left: calc(var(--sw) * -0.55); }
.cg .stk .hc:first-child { margin-left: 0; }
.cg.pi .stk .hc { margin-left: calc(var(--sw) * -0.7); }
.cg.pi .stk .hc:first-child { margin-left: 0; }
.cg .n { font-size: 0.66rem; font-weight: 800; color: var(--dim); background: #0b1510; border-radius: 6px; padding: 1px 4px; align-self: flex-end; white-space: nowrap; }
.cg .n.ok { color: var(--accent2); }
.cg.empty { opacity: 0.35; }

.table { flex: 1; min-height: 0; position: relative; margin: 4px 8px; border-radius: 16px;
  background: radial-gradient(circle at 50% 40%, var(--mat), var(--mat2)); box-shadow: inset 0 0 0 2px var(--mat-line), inset 0 6px 24px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; justify-content: center; padding: 8px 8px 8px 56px; overflow: hidden; }
.deck { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); --cw: 38px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.deck i { display: block; width: 38px; height: 61px; border-radius: 4px; background: repeating-linear-gradient(45deg, var(--back) 0 4px, var(--back2) 4px 8px); border: 1px solid #300;
  box-shadow: 2px 2px 0 #3a0a0a, 4px 4px 0 #2a0505, 0 6px 10px rgba(0, 0, 0, 0.5); }
.deck b { font-size: 0.72rem; color: #fff; background: rgba(0, 0, 0, 0.4); padding: 1px 6px; border-radius: 8px; }
.floor { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; align-content: center; max-width: 100%; --cw: var(--fw); }
.fg { display: flex; position: relative; }
.fg .hc { margin-left: calc(var(--fw) * -0.42); }
.fg .hc:first-child { margin-left: 0; }
.fg.picking .hc { margin-left: 4px; }
.fg.picking .hc:first-child { margin-left: 0; }
.fg.match .hc { box-shadow: 0 0 0 2px var(--ok), 0 0 12px rgba(74, 222, 128, 0.6); }
.fg .pp { position: absolute; top: -8px; right: -6px; font-size: 0.62rem; font-weight: 900; background: #7c2d12; color: #fed7aa; border-radius: 6px; padding: 0 4px; z-index: 2; }
.toast { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(15, 23, 18, 0.92); color: #fde68a; padding: 10px 18px; border-radius: 14px;
  font-weight: 900; font-size: 1.25rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); z-index: 3; max-width: calc(100% - 24px); text-align: center; pointer-events: none; border: 1px solid rgba(253, 230, 138, 0.4); animation: pop 0.25s ease-out; }
.toast small { display: block; font-size: 0.75rem; color: var(--dim); font-weight: 700; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; } }

.hand { display: grid; grid-template-columns: repeat(5, var(--cw)); justify-content: center; gap: 6px 6px; padding: 6px 8px 4px; min-height: calc(var(--cw) * 1.6 + 12px); }
.hand .hc { cursor: pointer; transition: transform 0.12s; touch-action: manipulation; }
.hand .hc.can::after { content: ''; position: absolute; top: 3px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 4px var(--ok); }
.hand .hc.sel { transform: translateY(-8px); box-shadow: 0 0 0 3px var(--accent2), 0 8px 14px rgba(0, 0, 0, 0.5); }
.hand .hc.sug { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(250, 204, 21, 0.8); }
.hand.wait .hc { opacity: 0.75; cursor: default; }
.hand .key { position: absolute; bottom: 2px; right: 3px; font-size: 0.55rem; color: #78716c; font-weight: 800; }

/* ── 모달 ── */
.modal { position: fixed; inset: 0; background: rgba(4, 8, 6, 0.72); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal-box, .sheet { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.modal-box h2, .sheet h2 { margin: 0 0 8px; font-size: 1.25rem; }
.modal-box p { line-height: 1.5; }
.modal-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.modal-btns .btn { flex: 1; white-space: nowrap; padding: 10px 8px; }
.center { text-align: center; }
.big-ico { font-size: 2.6rem; animation: rise 0.5s ease-out; }
@keyframes rise { from { transform: scale(0.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.stars { font-size: 2rem; color: var(--gold); letter-spacing: 4px; }
.tally { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.9rem; }
.tally td { padding: 4px 6px; border-bottom: 1px dashed var(--line); }
.tally td:last-child { text-align: right; font-weight: 800; }
.tally .x td { color: #fca5a5; }
.tally .sum td { border-bottom: 0; font-size: 1.15rem; color: var(--accent2); }
.mscore { display: flex; justify-content: center; gap: 18px; font-weight: 900; font-size: 1.1rem; margin: 6px 0; }
.mscore small { color: var(--dim); font-weight: 700; font-size: 0.75rem; }
.prog { height: 8px; border-radius: 4px; background: #0b1510; overflow: hidden; margin: 2px 0 6px; }
.prog i { display: block; height: 100%; background: var(--accent2); }
.prog.o i { background: var(--accent); }
.ach-got { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.ach-got span { padding: 5px 10px; border-radius: 999px; background: rgba(252, 211, 77, 0.12); border: 1px solid rgba(252, 211, 77, 0.45); font-size: 0.82rem; font-weight: 700; }
.gs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gs .btn { padding: 14px 8px; font-size: 1.15rem; }
.gs .btn small { display: block; font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.intro { text-align: center; }
.intro .oi { font-size: 3rem; }
.intro q { display: block; margin: 8px 0; font-style: italic; color: var(--accent2); }
.intro ul, .help ul { text-align: left; margin: 8px 0; padding-left: 20px; font-size: 0.86rem; color: var(--dim); line-height: 1.55; }
.help h3 { margin: 12px 0 4px; font-size: 0.95rem; }
.help .cards { display: flex; flex-wrap: wrap; gap: 4px; --cw: 30px; margin: 4px 0; }
.ex-row { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; --cw: 30px; margin: 4px 0; }
.mlist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px; --cw: 24px; }
.mlist div { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.62rem; color: var(--dim); }
.mlist .row4 { display: flex; gap: 1px; }
.noscript { padding: 20px; text-align: center; }

@media (max-width: 400px) { .back-txt { display: none; } .tab { font-size: 0.78rem; } .who .ava { font-size: 1.25rem; } }
@media (max-height: 640px) { .p-title small { display: none; } .who small { display: none; } }
