/* 머니로드 — 사이트 전체 CSS 한 파일 (나무 테이블 위에 펼친 보드게임) */
:root {
  --fg: #1f2328;
  --muted: #6b7280;
  --line: #e7e8ec;
  --card: #f3f4f6;
  --on: #1f2328;
  --on-fg: #fff;
  --paper: #fff;
  --table: #4a2f1b;
  --table-fg: #fff;
  --table-muted: rgba(255, 255, 255, .66);
  --minus: #e03131;
  --plus: #1c7ed6;
  --red: #e8413c;
  --red-dk: #b8261f;
  --disp-bg: #1a0d0d;
  --disp-fg: #ff3b30;
  --shadow: 0 6px 18px rgba(0, 0, 0, .35);
  --gutter: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; color: var(--table-fg); font: 16px/1.5 var(--font);
  background-color: var(--table);
  background-image: var(--noise), repeating-linear-gradient(92deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 11px, rgba(0, 0, 0, .05) 11px 13px, transparent 13px 23px), linear-gradient(180deg, #6b4428, #3f2816);
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid #ffd43b; outline-offset: 2px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* 머리 */
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px; }
.logo { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #ffd43b; color: #1f2328; font-size: 16px; font-weight: 900; box-shadow: inset 0 -3px 0 #e8a500; }
.top-act { display: flex; align-items: center; gap: 4px; }
.tbtn { height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.ibtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: background .2s, color .2s; }
.tbtn:hover, .ibtn:hover { background: #fff; color: #1f2328; }
.ibtn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.ibtn .snd-off { display: none; stroke-width: 2; stroke-linecap: round; }
.ibtn[aria-pressed="false"] .snd-on { display: none; }
.ibtn[aria-pressed="false"] .snd-off { display: block; }
.gnb-account { --xa-bg: #ffd43b; --xa-fg: #1f2328; display: inline-flex; margin-left: 2px; }
.gnb-account .xa-login { font-size: 14px; font-weight: 700; color: #fff; }

/* 배치 — 폰: 위 자리 · 판 · 아래 자리 · 룰렛(아래에 붙음) */
.game { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 20px; max-width: 720px; }
.seats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px; }
.seats:empty { display: none; }
.seats > .seat:only-child { grid-column: 1 / -1; }
.board-box { position: relative; margin: 0 4px; overflow: hidden; border-radius: 22px; box-shadow: 0 3px 0 #0b5394, 0 7px 0 #083c6b, 0 22px 40px rgba(0, 0, 0, .55); touch-action: pan-y; }
.board { position: relative; width: 100%; border-radius: 22px; transform-origin: 0 0; transition: transform .45s cubic-bezier(.3, .7, .3, 1); will-change: transform; }
.board.zoomed { cursor: grab; }
.board.dragging { transition: none; cursor: grabbing; }
.board-box:has(.board.zoomed) { touch-action: none; }
.board::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(0, 0, 0, .28) calc(50% - 1.5px), rgba(0, 0, 0, .28) 50%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, .5) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(180deg, transparent calc(50% - 1.5px), rgba(0, 0, 0, .28) calc(50% - 1.5px), rgba(0, 0, 0, .28) 50%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, .5) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    var(--noise); }
#svgBox .bsvg { display: block; width: 100%; height: auto; border-radius: 22px; }
.tl.hot { animation: hot .5s var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes hot { 50% { transform: scale(1.14); } }
.bank { position: absolute; width: 2px; height: 2px; }

/* 자동차 말 */
.tokens { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.car { position: absolute; transition: left .22s var(--ease), top .22s var(--ease); filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.car svg { display: block; width: 100%; height: auto; }
.car.now { z-index: 2; animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14%) scale(1.06); } }
.car-ic { display: block; width: 24px; height: 34px; flex: none; }

.toast { position: absolute; left: 50%; top: 50%; z-index: 3; max-width: 86%; padding: 12px 18px; border-radius: 14px; background: rgba(20, 20, 22, .92); color: #fff; font-size: 18px; font-weight: 800; text-align: center; line-height: 1.35; word-break: keep-all; opacity: 0; transform: translate(-50%, -40%) scale(.9); transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast .plus { color: #74c0fc; }
.toast .minus { color: #ff8787; }

/* 참여자 자리 (종이 카드) */
.seat { --pc: #1f2328; position: relative; min-width: 0; padding: 8px 10px; border-radius: 14px; background: var(--paper); color: var(--fg); box-shadow: 0 2px 0 rgba(0, 0, 0, .15), 0 8px 18px rgba(0, 0, 0, .35); transition: transform .3s var(--ease), box-shadow .3s; }
.seat::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pc); }
.seat.on { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--pc), 0 0 0 6px #ffd43b, 0 12px 24px rgba(0, 0, 0, .45); }
.seat.done { opacity: .82; }
.seat.gain { animation: gain .6s; }
.seat.loss { animation: loss .6s; }
@keyframes gain { 40% { box-shadow: 0 0 0 4px #51cf66, 0 8px 18px rgba(0, 0, 0, .35); } }
@keyframes loss { 40% { box-shadow: 0 0 0 4px #ff6b6b, 0 8px 18px rgba(0, 0, 0, .35); } }
.seat-hd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.seat-car .car-ic { width: 22px; height: 31px; }
.seat .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; }
.seat .cash { font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.seat .cash.neg { color: var(--minus); }
.seat-job { display: block; width: 100%; margin: 2px 0 4px; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: underline dotted rgba(0, 0, 0, .3); text-underline-offset: 3px; }
.seat-job:hover { color: var(--fg); }
.wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 22px; }
.wallet .empty { font-size: 12px; color: var(--muted); }
.seat-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.seat-cards:has(.lvcards:empty):has(.assets:empty) { display: none; }
.lvcards, .assets { display: inline-flex; align-items: center; gap: 3px; }
.lvcards b, .stack b { font-size: 11px; font-weight: 800; color: #495057; }

/* 지폐 · 레벨업 카드 · 자산 카드 */
.bill { display: inline-flex; align-items: center; justify-content: center; gap: 1px; width: 38px; height: 19px; border-radius: 2px; background: var(--c); color: rgba(0, 0, 0, .78); font-size: 10px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .32), inset 0 0 0 3px var(--c), inset 0 0 0 3.8px rgba(0, 0, 0, .2); }
.bill i { font-style: normal; font-size: .85em; opacity: .7; }
.stack { display: inline-flex; align-items: center; gap: 2px; }
.stack.many .bill { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .32), inset 0 0 0 3px var(--c), inset 0 0 0 3.8px rgba(0, 0, 0, .2), 2px -2px 0 0 var(--c), 2px -2px 0 1px rgba(0, 0, 0, .25); }
.stack.lots .bill { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .32), inset 0 0 0 3px var(--c), inset 0 0 0 3.8px rgba(0, 0, 0, .2), 2px -2px 0 0 var(--c), 2px -2px 0 1px rgba(0, 0, 0, .25), 4px -4px 0 0 var(--c), 4px -4px 0 1px rgba(0, 0, 0, .25); }
.stack.many { margin-right: 2px; }
.bill.loan { --c: #faa2c1; width: auto; padding: 0 6px; }
.bill.loan i { opacity: 1; margin-right: 3px; }
.lvcard { display: inline-grid; place-items: center; width: 44px; height: 18px; border-radius: 3px; background: linear-gradient(#fff3bf, #ffd43b 45%, #f2b705); color: #6b4e00; box-shadow: inset 0 0 0 1.5px #b08900, inset 0 2px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(0, 0, 0, .3); }
.lvcard i { font: italic 900 7.5px/1 var(--serif); letter-spacing: .04em; white-space: nowrap; }
.acard { display: inline-grid; place-items: center; width: 22px; height: 28px; border-radius: 4px; background: var(--c); font-size: 14px; box-shadow: inset 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, .35); }
.fly { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.fly-bill { position: fixed; left: 0; top: 0; width: 58px; height: 29px; font-size: 13px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); will-change: transform; }
.lvcard.fly-bill { width: 66px; height: 26px; }
.lvcard.fly-bill i { font-size: 11px; }
.lvmini { display: inline-block; padding: 0 .35em; border-radius: 2px; background: linear-gradient(#ffe066, #f2b705); color: #6b4e00; font: italic 900 .78em/1.4 var(--serif); box-shadow: inset 0 0 0 1px #b08900; }

/* 전자룰렛 — 창 안의 작은 기계 */
.disp { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--disp-bg); box-shadow: inset 0 0 0 3px #3b2a00, inset 0 4px 10px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .5); font-size: 46px; font-weight: 900; font-variant-numeric: tabular-nums; font-style: italic; }
.disp-ghost { position: absolute; color: rgba(255, 59, 48, .1); }
.disp-num { position: relative; color: var(--disp-fg); text-shadow: 0 0 10px rgba(255, 59, 48, .8); }
.mini .disp-ghost { display: none; }
.spin { position: relative; width: 88px; height: 64px; border-radius: 16px; background: var(--red); color: #fff; font-size: 17px; font-weight: 900; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -6px 0 var(--red-dk), 0 4px 0 #8f1d17; transition: transform .08s, box-shadow .08s, opacity .2s, filter .2s; }
.spin:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 -3px 0 var(--red-dk), 0 0 0 #8f1d17; }
.spin:disabled { opacity: .5; cursor: default; }

/* 전자룰렛 — 판 가운데 올려 둔 플라스틱 기계 */
.machine { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.9% 2.2% 2.6%; container-type: inline-size;
  border-radius: 34% 34% 24% 24% / 17% 17% 12% 12%; background: linear-gradient(160deg, #fff3a6, #f6d03c 45%, #ddb000); color: #1f2328;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), inset 0 -7px 0 #c99700, 0 4px 0 #a87e00, 0 7px 0 #7d5e00, 0 14px 22px rgba(0, 0, 0, .5); }
.m-top { width: 100%; padding: 5cqw 4cqw 6cqw; border-radius: 22cqw 22cqw 8cqw 8cqw; background: linear-gradient(#ffffff, #e7f5ff); box-shadow: inset 0 -1.5cqw 0 rgba(0, 0, 0, .08), 0 1cqw 0 rgba(0, 0, 0, .12); text-align: center; }
.m-logo { display: block; font: italic 900 8cqw/1.1 var(--serif); letter-spacing: .04em; color: #c92a2a; }
.turn { display: block; margin-top: 2cqw; }
.turn .who { display: block; line-height: 1.15; }
.turn .nm { display: flex; align-items: center; justify-content: center; gap: 3cqw; overflow: hidden; white-space: nowrap; font-size: 11.5cqw; font-weight: 900; }
.turn .nm::before { content: ""; flex: none; width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--pc, #adb5bd); box-shadow: 0 0 0 1.2cqw #fff, 0 0 0 1.8cqw rgba(0, 0, 0, .2); }
.turn .sm { display: block; font-size: 8.5cqw; font-weight: 700; color: #495057; }
.machine .spin { width: 76cqw; height: auto; aspect-ratio: 1; border-radius: 50%; font-size: 13cqw;
  background: radial-gradient(circle at 36% 30%, #ff9d94, #e8413c 45%, #a61e1a 100%);
  box-shadow: 0 0 0 4cqw #e2b100, 0 0 0 5.5cqw #a87e00, 0 5cqw 0 3cqw #7d5e00, 0 9cqw 10cqw 2cqw rgba(0, 0, 0, .35), inset 0 -3cqw 5cqw rgba(0, 0, 0, .3); }
.machine .spin b { position: relative; text-shadow: 0 1cqw 0 rgba(0, 0, 0, .35); }
.spin-cap { position: absolute; left: 22%; top: 11%; width: 42%; height: 22%; border-radius: 50%; background: rgba(255, 255, 255, .45); filter: blur(1px); }
.machine .spin:active:not(:disabled) { transform: translateY(3cqw); box-shadow: 0 0 0 4cqw #e2b100, 0 0 0 5.5cqw #a87e00, 0 2cqw 0 3cqw #7d5e00, inset 0 -2cqw 4cqw rgba(0, 0, 0, .3); }
.machine .spin:disabled { opacity: 1; filter: saturate(.45) brightness(.92); }
.machine .disp { width: 84cqw; height: 46cqw; border-radius: 7cqw; place-items: center end; padding-right: 8cqw; font-size: 36cqw; line-height: 1;
  box-shadow: inset 0 0 0 2.4cqw #3b2a00, inset 0 3cqw 6cqw rgba(0, 0, 0, .7), 0 1.5cqw 0 rgba(255, 255, 255, .55); }
.machine .disp-ghost { right: 8cqw; color: rgba(255, 59, 48, .06); }

.logbox { padding: 0 16px; }
.sub { margin: 8px 0 6px; font-size: 14px; color: var(--table-muted); }
.log { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--table-muted); max-height: 220px; overflow: auto; }
.log li { padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.log li:first-child { color: var(--table-fg); font-weight: 600; }

/* PC: 판이 화면 높이를 꽉 채우고 양옆에 자리 */
@media (min-width: 960px) {
  .top-in { height: 48px; }
  .game {
    max-width: none; display: grid; justify-content: center; align-items: start; column-gap: 28px; row-gap: 12px; padding: 6px 24px 14px;
    grid-template-columns: minmax(220px, 300px) auto minmax(220px, 300px); grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "sa board sb" "lg board sb";
  }
  .seats { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 0; min-height: calc(100svh - 48px - 20px - 140px); }
  .seats:empty { display: flex; }
  .sa { grid-area: sa; }
  .sb { grid-area: sb; }
  .board-box { grid-area: board; margin: 0; height: calc(100svh - 48px - 28px); aspect-ratio: 1032 / 1432; }
  .board { height: 100%; }
  .logbox { grid-area: lg; padding: 0; align-self: end; }
  .log { max-height: 120px; }
  .seat { padding: 14px 16px; }
  .seat-car .car-ic { width: 30px; height: 42px; }
  .seat .nm { font-size: 18px; }
  .seat .cash { font-size: 20px; }
  .seat-job { font-size: 14px; margin: 4px 0 8px; }
  .wallet { gap: 6px 10px; }
  .bill { width: 48px; height: 24px; font-size: 12px; }
  .lvcard { width: 56px; height: 22px; }
  .lvcard i { font-size: 9.5px; }
  .acard { width: 28px; height: 36px; font-size: 18px; }
}
@media (min-width: 1500px) {
  .game { grid-template-columns: minmax(260px, 360px) auto minmax(260px, 360px); column-gap: 40px; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .game { margin: 0 auto; }
  .seat .nm, .seat .cash { font-size: 17px; }
  .bill { width: 44px; height: 22px; font-size: 11px; }
}

/* 창 */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--gutter); background: rgba(10, 8, 5, .5); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 440px; max-height: calc(100svh - 32px); overflow: auto; padding: 22px 20px 18px; border-radius: 22px; background: var(--paper); color: var(--fg); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); animation: pop .3s var(--ease); }
@keyframes pop { from { transform: translateY(16px) scale(.96); } }
.m-title { margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.m-body { font-size: 16px; }
.m-body p { margin: 0 0 10px; }
.m-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn { flex: 1 1 120px; min-height: 50px; padding: 0 14px; border-radius: 14px; background: var(--card); color: var(--fg); font-weight: 800; transition: background .2s, color .2s; }
.btn:hover { background: var(--line); }
.btn.pri { background: var(--on); color: var(--on-fg); }
.btn.pri:hover { background: #000; }
.big { display: block; margin: 6px 0 10px; font-size: 30px; font-weight: 900; text-align: center; }
.big.plus { color: var(--plus); }
.big.minus { color: var(--minus); }
.mini { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0; padding: 12px; border-radius: 20px; background: linear-gradient(#ffe066, #fcc419); box-shadow: inset 0 -4px 0 #e8a500; }
.note { font-size: 14px; color: var(--muted); }

/* 시작 설정 */
.field { display: block; margin: 0 0 12px; }
.field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg { position: relative; display: flex; padding: 4px; border-radius: 999px; background: var(--card); }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--on); transition: transform .35s var(--ease), width .35s var(--ease); }
.seg button { position: relative; flex: 1; height: 40px; border-radius: 999px; font-weight: 800; white-space: nowrap; transition: color .35s var(--ease); }
.seg button.on { color: var(--on-fg); }
.seg.no-ind button.on { background: var(--on); }
.names { display: grid; gap: 8px; }
.name-row { display: flex; align-items: center; gap: 10px; }
.name-row .car-ic { width: 22px; height: 31px; }
.name-row input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--fg); font: inherit; }
.rules { margin: 0; padding-left: 20px; }
.rules li { margin-bottom: 6px; }
.rank, .ct { margin: 0; padding: 0; list-style: none; }
.rank li { display: grid; grid-template-columns: 26px 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank .no { font-size: 18px; font-weight: 900; }
.rank .car-ic, .ct .car-ic { width: 20px; height: 28px; }
.rank .nm { min-width: 0; font-weight: 800; }
.rank small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.rank .sum { font-weight: 900; font-variant-numeric: tabular-nums; }
.ct li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; transition: background .25s; }
.ct li b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ct li.on { background: var(--card); }
.ct li.win { background: #ffe066; }
.ct .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }

/* 카드 (직업 · 찬스 · 자산) */
.deck { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 10px; }
.cback { position: relative; display: block; width: 100%; aspect-ratio: 1.4; border-radius: 10px; transition: transform .2s var(--ease); }
.cback:nth-child(odd) { transform: rotate(-2deg); }
.cback:nth-child(even) { transform: rotate(1.5deg); }
.cback:hover { transform: translateY(-5px) rotate(0); }
.cback .jc-face { box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.jc-face { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; container-type: inline-size; color: #1f2328; text-align: left; }
.jc-back { background: repeating-linear-gradient(45deg, rgba(255, 212, 59, .12) 0 6px, transparent 6px 14px), linear-gradient(160deg, #234a7a, #142c4d); box-shadow: inset 0 0 0 5px #f1f3f5, inset 0 0 0 7px #ffd43b; }
.jc-back.cb { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .1) 0 6px, transparent 6px 14px), linear-gradient(160deg, #7950f2, #4c2bb0); }
.jb-pat { position: absolute; inset: 5cqw; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 1cqw 3cqw; font-size: 8.5cqw; line-height: 1.25; opacity: .22; filter: grayscale(1) brightness(2); color: #fff; font-weight: 900; }
.jb-band { position: absolute; left: 3.2cqw; right: 3.2cqw; top: 50%; transform: translateY(-50%); display: grid; place-items: center; height: 17cqw; background: linear-gradient(#fff3bf, #ffd43b 40%, #f2b705); color: #1f2328; font-size: 8cqw; font-weight: 900; letter-spacing: .12em; box-shadow: 0 .6cqw 0 rgba(0, 0, 0, .25); }
.jb-coin { position: absolute; right: 7cqw; top: 7cqw; display: grid; place-items: center; width: 11cqw; height: 11cqw; border-radius: 50%; background: #ffd43b; color: #1f2328; font-size: 6.5cqw; font-weight: 900; box-shadow: 0 0 0 .9cqw #fff; }
.jc-front { transform: rotateY(180deg); background: #fff; padding: 3.4%; box-shadow: inset 0 0 0 4px #e9ecef; }
.jf-title { display: block; margin-bottom: 2cqw; text-align: center; font-size: 6.6cqw; font-weight: 900; letter-spacing: -.02em; color: var(--jc); }
.jf-body { display: grid; grid-template-columns: 34% 1fr; gap: 3cqw; height: calc(100% - 10.5cqw); }
.jf-pic { display: grid; place-items: center; border-radius: 3cqw; background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .7) 0 7%, transparent 8%), linear-gradient(160deg, #fff, var(--jc) 120%); box-shadow: inset 0 0 0 .6cqw rgba(0, 0, 0, .12); }
.jf-pic span { font-size: 19cqw; filter: drop-shadow(0 1cqw 1cqw rgba(0, 0, 0, .25)); }
.jf-st { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.jf-s { display: block; overflow: hidden; border-radius: 1.6cqw; border: .5cqw solid var(--sc); }
.jf-s b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .5cqw 2cqw; background: var(--sc); color: #fff; font-size: 3.9cqw; }
.jf-s small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .5cqw 2cqw; font-size: 3.2cqw; font-weight: 700; color: #343a40; }
.jf-s.s1 { --sc: #74b816; }
.jf-s.s2 { --sc: #1c7ed6; }
.jf-s.s3 { --sc: #e03131; }
.jf-s.s3 small { background: #fff9db; }
.jf-s.cur { box-shadow: 0 0 0 1cqw #fcc419; }
.jf-up { display: block; text-align: center; font-size: 2.9cqw; font-weight: 900; line-height: 1; color: #e8590c; }
/* 찬스 카드 (세로) */
.jc-front.cc { display: flex; flex-direction: column; align-items: stretch; padding: 0; background: #fff; color: #1f2328; text-align: center; box-shadow: inset 0 0 0 5px #7048e8; }
.cc-hd { display: flex; align-items: center; justify-content: center; gap: 3cqw; padding: 4.2cqw 0 3.6cqw; background: linear-gradient(135deg, #9775fa, #5f3dc4); color: #fff; font-size: 6.8cqw; font-weight: 900; letter-spacing: .08em; text-shadow: 0 .6cqw 0 rgba(0, 0, 0, .25); }
.cc-hd i { display: grid; place-items: center; width: 8cqw; height: 8cqw; border-radius: 50%; background: #ffd43b; color: #5f3dc4; font-size: 5.4cqw; font-style: normal; text-shadow: none; box-shadow: 0 .6cqw 0 rgba(0, 0, 0, .25); }
.cc-pic { position: relative; display: grid; place-items: center; height: 40%; margin: 5cqw 6cqw 0; border-radius: 6cqw; background: radial-gradient(circle at 50% 42%, #fff 0 28%, #e5dbff 72%); box-shadow: inset 0 0 0 .9cqw #d0bfff, inset 0 -2cqw 4cqw rgba(112, 72, 232, .12); }
.cc-pic::before, .cc-pic::after { content: "✦"; position: absolute; color: #fcc419; font-size: 7cqw; }
.cc-pic::before { left: 6cqw; top: 4cqw; }
.cc-pic::after { right: 6cqw; bottom: 4cqw; font-size: 5cqw; color: #9775fa; }
.cc-pic span { font-size: 25cqw; line-height: 1; filter: drop-shadow(0 1.4cqw 1.2cqw rgba(0, 0, 0, .22)); }
.cc-t { margin: 5cqw 7cqw 0; font-size: 5.4cqw; font-weight: 800; line-height: 1.42; word-break: keep-all; }
.cc-amt { align-self: center; margin-top: 3.6cqw; padding: 1.4cqw 6cqw; border-radius: 99px; font-size: 7.6cqw; font-weight: 900; line-height: 1.25; }
.cc-amt.plus { background: #d3f9d8; color: #2b8a3e; }
.cc-amt.minus { background: #ffe3e3; color: #c92a2a; }
.cc-amt.lv { background: #fff3bf; color: #6b4e00; font-size: 6cqw; }
.cc-amt.mv { background: #e7f5ff; color: #1864ab; font-size: 6cqw; }
.cc-sp { flex: 1; }
.cc-bonus { margin: 0 5cqw 2cqw; padding: 2.4cqw 3cqw; border-radius: 3cqw; border: .6cqw dashed #ced4da; background: #f8f9fa; color: #495057; font-size: 3.9cqw; font-weight: 700; line-height: 1.4; word-break: keep-all; }
.cc-bonus.hit { border-color: #f59f00; background: #fff3bf; color: #1f2328; }
.cc-foot { padding: 2cqw 0 4.4cqw; color: #b197fc; font: italic 900 3.8cqw/1 var(--serif); letter-spacing: .2em; }
/* 주식 · 부동산 카드 (세로) */
.jc-front.ac { display: flex; flex-direction: column; padding: 0; background: #fff; box-shadow: inset 0 0 0 5px var(--jc); }
.ac-hd { padding: 4cqw 0 3.4cqw; background: var(--jc); color: #fff; text-align: center; font-size: 6.4cqw; font-weight: 900; letter-spacing: .1em; text-shadow: 0 .6cqw 0 rgba(0, 0, 0, .25); }
.ac-pic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; height: 36%; margin: 5cqw 6cqw 0; border-radius: 5cqw; background: linear-gradient(160deg, #fff 20%, color-mix(in srgb, var(--jc) 40%, #fff)); box-shadow: inset 0 0 0 .8cqw rgba(0, 0, 0, .08); }
.ac-pic span { font-size: 21cqw; line-height: 1; filter: drop-shadow(0 1.4cqw 1.2cqw rgba(0, 0, 0, .22)); }
.ac-pic b { font-size: 6.4cqw; font-weight: 900; color: #1f2328; }
.ac-rows { display: grid; gap: 2cqw; margin: 5cqw 7cqw 0; }
.ac-rows > span { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 1.6cqw; border-bottom: .5cqw dotted #ced4da; font-size: 4.8cqw; }
.ac-rows em { font-style: normal; font-weight: 700; color: #868e96; }
.ac-rows b { font-weight: 900; color: #1f2328; }
.ac-sell { margin: auto 5cqw 5cqw; padding: 3cqw; border-radius: 3.4cqw; background: #f1f3f5; }
.ac-sell > em { display: block; margin-bottom: 2cqw; text-align: center; font-size: 3.9cqw; font-style: normal; font-weight: 800; color: #495057; }
.ac-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.ac-chips > span { display: flex; flex-direction: column; align-items: center; padding: 1.6cqw 0; border-radius: 2.4cqw; background: #fff; box-shadow: 0 .6cqw 0 rgba(0, 0, 0, .08); }
.ac-chips small { font-size: 3.6cqw; font-weight: 800; color: #868e96; }
.ac-chips b { font-size: 5.6cqw; font-weight: 900; }
.ac-chips > span:nth-child(1) b { color: #e03131; }
.ac-chips > span:nth-child(3) b { color: #2b8a3e; }

/* 카드가 가운데서 '촥' 열리는 무대 */
.cardfx { --w: min(500px, 90vw, 62svh); position: fixed; inset: 0; z-index: 60; background: rgba(10, 8, 5, .6); animation: fade .2s; transition: opacity .2s; overflow: hidden; }
.cardfx.out { opacity: 0; }
.jc-pos { position: absolute; left: 50%; top: 42%; width: var(--w); aspect-ratio: 1.4; margin-left: calc(var(--w) / -2); margin-top: calc(var(--w) / -2.8); perspective: 1100px; }
.jc-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.jc-in .jc-face { box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.jc-in .jc-front { box-shadow: inset 0 0 0 4px #e9ecef, 0 18px 40px rgba(0, 0, 0, .55); }
.jc-in .jc-front.cc { box-shadow: inset 0 0 0 5px #7048e8, 0 18px 40px rgba(0, 0, 0, .55); }
.jc-in .jc-front.ac { box-shadow: inset 0 0 0 5px var(--jc), 0 18px 40px rgba(0, 0, 0, .55); }
.cardfx.tall { --w: min(340px, 84vw, 46svh); }
.cardfx.tall .jc-pos { aspect-ratio: .7; margin-top: calc(var(--w) / -1.4); }
.cardfx.tall .jc-btns { top: calc(42% + var(--w) / 1.4 + 20px); }
.deck.tall { grid-template-columns: repeat(3, 1fr); }
.deck.tall .cback { aspect-ratio: .7; }
.jc-rays { position: absolute; left: 50%; top: 42%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 224, 102, 0) 0deg 9deg, rgba(255, 224, 102, .3) 9deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 45%); mask-image: radial-gradient(circle, #000 0, transparent 45%); opacity: 0; transition: opacity .35s; animation: rays 14s linear infinite; }
.jc-rays.on { opacity: 1; }
@keyframes rays { to { transform: rotate(360deg); } }
.jc-flash { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 60%); opacity: 0; pointer-events: none; }
.jc-flash.on { animation: flash .55s ease-out; }
@keyframes flash { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
.jc-btns { position: absolute; left: 16px; right: 16px; top: calc(42% + var(--w) / 2.8 + 26px); display: flex; justify-content: center; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease); }
.jc-btns.show { opacity: 1; transform: none; }
.jc-btns .btn { flex: 0 1 180px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.jc-btns .btn:not(.pri) { background: #fff; }

@media (max-width: 380px) {
  .tbtn { padding: 0 9px; font-size: 13px; }
  .logo { font-size: 17px; }
  .seat { padding: 7px 8px; }
  .seat .nm, .seat .cash { font-size: 14px; }
  .bill { width: 34px; height: 17px; font-size: 9px; }
}
@media (max-width: 340px) {
  #btnSound { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 차례 알림 — 화면이 어두워지고 가운데에 '○○ 차례' */
.turnfx { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; background: rgba(8, 6, 4, .66); animation: fade .25s; transition: opacity .25s; cursor: pointer; }
.turnfx.out { opacity: 0; }
.tf-in { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: tfpop .45s var(--ease); }
@keyframes tfpop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } }
.tf-car .car-ic { width: 96px; height: 138px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); animation: bob 1s ease-in-out infinite; }
.tf-col { padding: 6px 26px; border-radius: 999px; background: var(--pc); color: var(--pf, #fff); font-size: 40px; font-weight: 900; letter-spacing: -.02em; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); box-shadow: 0 0 0 5px #fff, 0 12px 26px rgba(0, 0, 0, .45); }
.tf-nm { color: #fff; font-size: 20px; font-weight: 800; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
@media (max-width: 380px) { .tf-col { font-size: 32px; } }

/* 돈 주고받는 장면 — 화면이 어두워지고 누가 누구에게 얼마를 주는지 크게 */
.mscene { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 4, .72); animation: fade .25s; transition: opacity .24s; cursor: pointer; }
.mscene.out { opacity: 0; }
.ms-card { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(420px, 100%); padding: 22px 18px 20px; border-radius: 24px; background: #fff; color: #1f2328; text-align: center; box-shadow: 0 0 0 6px #ffd43b, 0 24px 50px rgba(0, 0, 0, .5); animation: tfpop .45s var(--ease); }
.ms-ic { font-size: 54px; line-height: 1; }
.ms-title { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.ms-sub { font-size: 15px; font-weight: 600; color: #495057; word-break: keep-all; }
.ms-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; }
.ms-chip { padding: 4px 12px; border-radius: 999px; background: var(--pc); color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.ms-chip[style*="fcc419"], .ms-chip[style*="82c91e"] { color: #1f2328; }
.ms-chip.bank { background: #1c4fd8; }
.ms-arrow { font-size: 22px; font-weight: 900; color: #e03131; animation: nudge .6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.ms-amt { font-size: 34px; font-weight: 900; color: #e03131; font-variant-numeric: tabular-nums; }
.ms-total { display: flex; align-items: center; gap: 8px; min-height: 0; opacity: 0; transform: scale(.7); transition: opacity .25s, transform .35s var(--ease); }
.ms-total.on { opacity: 1; transform: none; }
.ms-total b { font-size: 24px; font-weight: 900; }
.ms-total .plus { color: #2b8a3e; }
.ms-total .minus { color: #e03131; }
.seat.lift { z-index: 57; }
.seat.pay { animation: payshake .5s; }
@keyframes payshake { 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* 자동 모드 버튼 */
.tbtn.on, .tbtn.auto.on { background: #ffd43b; color: #1f2328; box-shadow: 0 0 0 2px #fff; animation: autoglow 1.6s ease-in-out infinite; }
@keyframes autoglow { 50% { box-shadow: 0 0 0 2px #fff, 0 0 14px 2px rgba(255, 212, 59, .8); } }

/* 자리: 직업 명패 */
.seat-job { display: block; width: 100%; margin: 6px 0 6px; padding: 0; text-decoration: none; white-space: normal; }
.seat-job:hover .jp { transform: translateY(-1px); }
.jp { --jc: #868e96; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 6px 6px 6px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--jc) 16%, #fff), #fff 70%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--jc) 55%, #fff); text-align: left; transition: transform .2s var(--ease); }
.jp.student { --jc: #adb5bd; }
.jp-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: radial-gradient(circle, #fff 0 52%, rgba(255, 255, 255, .5) 53% 58%, var(--jc) 59%); font-size: 18px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.jp-t { min-width: 0; line-height: 1.2; }
.jp-t small { display: block; font-size: 11px; font-weight: 800; color: var(--jc); filter: brightness(.8); }
.jp.student .jp-t small { color: #868e96; filter: none; }
.jp-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 900; color: #1f2328; }
.jp-st { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 3px; }
.jp-st i { padding: 0 5px; border-radius: 99px; background: #e9ecef; color: #adb5bd; font: 800 9.5px/1.6 var(--font); font-style: normal; }
.jp-st i.on:nth-child(1) { background: #74b816; color: #fff; }
.jp-st i.on:nth-child(2) { background: #1c7ed6; color: #fff; }
.jp-st i.on:nth-child(3) { background: #e03131; color: #fff; }
.jp-st em { margin-left: 2px; font-size: 10px; font-style: normal; font-weight: 700; color: #868e96; white-space: nowrap; }
.jp-lv { display: grid; place-items: center; width: 42px; height: 40px; border-radius: 8px; background: linear-gradient(#fff3bf, #ffd43b 45%, #f2b705); color: #6b4e00; box-shadow: inset 0 0 0 1.5px #b08900, inset 0 2px 0 rgba(255, 255, 255, .7); line-height: 1; }
.jp-lv small { font: italic 900 7.5px/1 var(--serif); letter-spacing: .06em; }
.jp-lv b { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* 자리: 자동차에 탄 가족 6자리 */
.fam { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; margin-bottom: 6px; }
.fm { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 34px; }
.fm-face { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px dashed #dee2e6; background: #f8f9fa; overflow: hidden; }
.fm.in .fm-face { border: 0; background: radial-gradient(circle at 50% 35%, #fff, #e7f5ff); box-shadow: inset 0 0 0 2px var(--pc), 0 2px 4px rgba(0, 0, 0, .15); }
.fm.in.spouse .fm-face { background: radial-gradient(circle at 50% 35%, #fff, #ffe3ec); }
.fm.in.baby .fm-face { background: radial-gradient(circle at 50% 35%, #fff, #fff3bf); }
.fm.in.pet .fm-face { background: radial-gradient(circle at 50% 35%, #fff, #ebfbee); }
.fm-face svg { width: 30px; height: 30px; }
.fm small { font-size: 10px; font-weight: 800; color: #868e96; white-space: nowrap; }
.fm.in small { color: #343a40; }
.fm:not(.in) small { color: #ced4da; font-weight: 600; }
.fm.in .fm-face svg { animation: famidle 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
.fm.in:nth-child(2) .fm-face svg { animation-delay: -.6s; }
.fm.in:nth-child(3) .fm-face svg { animation-delay: -1.2s; }
.fm.in:nth-child(4) .fm-face svg { animation-delay: -1.8s; }
@keyframes famidle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.fm.new { animation: famnew .8s var(--ease); }
@keyframes famnew { 0% { transform: translateY(-24px) scale(.4); opacity: 0; } 60% { transform: translateY(3px) scale(1.15); opacity: 1; } }
.fm-done { align-self: center; margin-left: auto; padding: 3px 8px; border-radius: 99px; background: #1f2328; color: #fff; font-size: 11px; font-weight: 800; }
@media (min-width: 960px) {
  .jp-ic { width: 44px; height: 44px; font-size: 24px; }
  .jp-t b { font-size: 16px; }
  .jp-t small { font-size: 12px; }
  .jp-lv { width: 50px; height: 46px; }
  .jp-lv b { font-size: 22px; }
  .fm { width: 40px; }
  .fm-face, .fm-face svg { width: 36px; height: 36px; }
}
@media (max-width: 380px) {
  .jp { gap: 6px; padding: 5px; }
  .jp-ic { width: 30px; height: 30px; font-size: 17px; }
  .jp-lv { width: 36px; height: 36px; }
  .jp-lv b { font-size: 16px; }
  .jp-st em { display: none; }
  .fm { width: 28px; }
  .fm-face, .fm-face svg { width: 25px; height: 25px; }
}

/* 자리가 좁을 때(폰에서 두 칸) — 한 줄에 들어가게 */
.seat { container-type: inline-size; }
@container (max-width: 240px) {
  .jp { grid-template-columns: auto minmax(0, 1fr) auto; gap: 5px; padding: 5px; }
  .jp-ic { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }
  .jp-t small { font-size: 10px; }
  .jp-t b { font-size: 12.5px; }
  .jp-st i { padding: 0 3px; font-size: 8.5px; }
  .jp-st em { display: none; }
  .jp-lv { width: 32px; height: 32px; }
  .jp-lv small { font-size: 6px; }
  .jp-lv b { font-size: 15px; }
  .fam { flex-wrap: nowrap; gap: 2px; }
  .fm { width: auto; flex: 1 1 0; min-width: 0; }
  .fm-face, .fm-face svg { width: 22px; height: 22px; }
  .fm small { font-size: 8.5px; }
  .fm:not(.in) small { visibility: hidden; }
  .fm-done { position: absolute; right: 8px; top: 40px; }
}

/* 폰: 머리 버튼이 넘치지 않게 */
@media (max-width: 560px) {
  .logo .logo-txt { display: none; }
  .top-act { gap: 3px; }
  .tbtn { height: 34px; padding: 0 9px; font-size: 13px; }
  .ibtn { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  .tbtn { padding: 0 7px; font-size: 12px; }
  #btnSound { display: none; }
}

/* 결과 화면: 어디서 벌고 썼을까 */
.ledger { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.ledger summary { cursor: pointer; font-weight: 900; font-size: 15px; padding: 4px 0 8px; }
.lg-wrap { overflow-x: auto; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 5px 3px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ledger tbody th, .ledger tfoot th { text-align: left; font-weight: 600; }
.ledger thead th { border-top: 0; font-weight: 800; font-size: 12px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
.ledger thead th i { display: inline-block; width: 8px; height: 8px; margin-right: 3px; border-radius: 50%; background: var(--pc); vertical-align: 1px; }
.ledger td.minus { color: #c92a2a; }
.ledger td.top { background: #fff3bf; font-weight: 800; }
.ledger tfoot td, .ledger tfoot th { font-weight: 900; border-top: 2px solid var(--fg); }
.ledger .note { margin-top: 8px; font-size: 12.5px; }
@media (max-width: 380px) {
  .ledger table { font-size: 11px; letter-spacing: -.02em; }
  .ledger th, .ledger td { padding: 4px 2px; }
}
