/* ── 「마지막 경매」 ─────────────────────────────────────────
   색: 와인빛 벨벳 · 금박 · 촛불의 호박색. 글꼴은 고운 바탕(제목).
   body.theme-auction 이 붙으면 기본 색을 이 게임의 색으로 바꾼다 (다른 게임의 css 와 같은 방식). */
body.theme-auction {
  --navy: #2a0e18;
  --navy-deep: #16060c;
  --navy-mid: #3a1422;
  --navy-light: #6a2a3a;
  --teal: #b8903a;
  --teal-light: #f2d27a;
  --amber: #f2c45a;
  --amber-dark: #c9a24a;
  --cream: #f6eedc;
  --cream-dim: #c8b49a;
  --line: rgba(242, 210, 122, 0.22);
  --modal-top: #3a1422;
  --font-title: "Gowun Batang", "Noto Serif KR", serif;
  background: radial-gradient(ellipse 90% 520px at 50% 0, rgba(242, 196, 90, 0.14), transparent), #16060c;
}
body.theme-auction.playing { background: #0c0306; }
body.theme-auction .modal-box { background: linear-gradient(180deg, #3a1422, #1e0810); border: 1px solid rgba(242, 210, 122, 0.4); box-shadow: 0 0 0 4px rgba(12, 3, 6, 0.7), 0 18px 60px rgba(0, 0, 0, 0.7); }
body.theme-auction .scene-svg { animation: au-in 0.6s ease-out; }
@keyframes au-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.theme-auction .scene-svg { animation: none; } }

.au-poster.au-auction { background: linear-gradient(180deg, transparent 45%, rgba(22, 6, 12, 0.94) 78%), url("/img/poster-auction.svg") center 40% / cover no-repeat, #16060c; }
.game-art.ga-auction { background: url("/img/poster-auction.svg") center 40% / cover no-repeat, #16060c; }

/* 보물 쟁반: 무대 왼쪽 위 3×3 벨벳 */
.stage-tray { position: absolute; top: 10px; left: 10px; z-index: 3; display: grid; grid-template-columns: repeat(3, 30px); gap: 4px; padding: 6px; border-radius: 8px; background: linear-gradient(180deg, #6a1a2e, #2e0a14); border: 2px solid #c9a24a; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.stage-tray[hidden] { display: none; }
.tray-cell { width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6); display: grid; place-items: center; }
.tray-cell.got { background: radial-gradient(circle, rgba(242, 210, 122, 0.35), transparent 70%); }
button.tray-cell { padding: 0; border: 0; cursor: grab; transition: transform 0.15s; }
button.tray-cell:hover, button.tray-cell:focus-visible { transform: scale(1.15); outline: 2px solid #f2d27a; outline-offset: 1px; }
.tray-cell.held { outline: 3px solid #f2d27a; background: radial-gradient(circle, rgba(255, 230, 150, 0.7), transparent 75%); transform: scale(1.2); }
.stage-held { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(30, 8, 16, 0.92); border: 2px solid #c9a24a; color: #f6e6c0; font-size: 0.95rem; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); max-width: calc(100% - 32px); }
.stage-held[hidden] { display: none; }
.stage-held img { width: 30px; height: 30px; }
.stage.holding [data-hotspot], .stage.holding .hotspot { cursor: copy; }
.tray-cell img { width: 28px; height: 28px; }
.tray-cell.stamp-now { animation: au-stamp 0.9s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes au-stamp { 0% { transform: scale(2.6) rotate(-20deg); opacity: 0; } 60% { transform: scale(.9) rotate(4deg); opacity: 1; } 100% { transform: scale(1); } }
@media (max-width: 640px) { .stage-tray { grid-template-columns: repeat(3, 26px); gap: 3px; padding: 4px; } .tray-cell, .tray-cell img { width: 26px; height: 26px; } .stage-held { font-size: 0.82rem; bottom: 8px; } }

/* 악마 저울 */
.au-ds .ds-scale { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.au-ds .ds-beam > g { transition: transform 0.6s cubic-bezier(.3, 1.5, .5, 1); }
.au-ds .ds-tray { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 8px 0; }
.ds-coin { aspect-ratio: 1; border-radius: 50%; border: 2px solid #9a7a2a; background: radial-gradient(circle at 35% 30%, #fff2b8, #e8c060 45%, #a8822a); color: #4a3008; font-weight: 700; font-size: 0.8rem; cursor: pointer; padding: 0; }
.ds-coin.on-L { outline: 3px solid #5ab0e0; transform: translateY(-4px); }
.ds-coin.on-R { outline: 3px solid #e07a5a; transform: translateY(-4px); }
.ds-coin.out { opacity: 0.28; filter: grayscale(0.7); }
.ds-coin.picked { outline: 4px solid #ff4a4a; }
.ds-history { margin: 6px 0; padding-left: 22px; color: var(--cream-dim); font-size: 0.9rem; }
@media (max-width: 640px) { .au-ds .ds-tray { grid-template-columns: repeat(5, 1fr); } }

/* 회중시계 */
.au-wt .wt-face { width: 100%; max-width: 340px; display: block; margin: 0 auto; }
.wt-arrow { fill: none; stroke: #b98a3a; stroke-width: 1; opacity: 0.55; }
.wt-arrow.walked { stroke: #c8203a; stroke-width: 1.8; opacity: 1; }
.wt-num { cursor: pointer; }
.wt-num circle { fill: #f6eedc; stroke: #9a7a3a; stroke-width: 1; }
.wt-num text { font-size: 10px; font-weight: 700; fill: #3a2a1a; pointer-events: none; }
.wt-num.here circle { fill: #f2d27a; }
.wt-num.chosen circle { stroke: #c8203a; stroke-width: 3; }
.wt-hand { transition: d 0.4s; }
.wt-trail { display: flex; gap: 10px; align-items: baseline; justify-content: center; margin: 6px 0; font-variant-numeric: tabular-nums; }
.wt-trail small { color: var(--amber); }

/* 등 뒤의 리본 */
.au-rb .rb-dir { display: flex; justify-content: space-between; color: var(--cream-dim); font-size: 0.85rem; }
.au-rb .rb-line { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; margin: 6px 0 10px; }
.rb-person { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.rb-say { position: relative; padding: 6px 10px; border-radius: 12px; background: var(--cream); color: #3a2a1a; font-weight: 700; font-size: 0.95rem; }
.rb-say small { display: block; font-weight: 400; font-size: 0.7rem; color: #8a6a4a; }
.rb-say::after { content: ""; position: absolute; left: 50%; bottom: -7px; border: 7px solid transparent; border-top-color: var(--cream); border-bottom: 0; transform: translateX(-50%); }
.rb-body { display: flex; flex-direction: column; align-items: center; }
.rb-head { width: 34px; height: 34px; border-radius: 50%; background: #3a2a2a; }
.rb-torso { width: 64px; height: 82px; margin-top: 3px; border-radius: 22px 22px 6px 6px; background: #5a4a5a; display: grid; place-items: center; }
.rb-person.me .rb-torso { background: #6e6e76; }
.rb-ribbon { font-size: 1.1rem; }
.rb-ribbon.hidden-back { opacity: 0.5; filter: grayscale(1); }
.rb-ribbon.mine { min-width: 56px; padding: 6px 4px; border-radius: 10px; border: 2px dashed var(--amber); background: #2a0e18; color: var(--cream); font-weight: 700; cursor: pointer; }
.rb-ribbon.mine.c-R { background: #c8203a; border-style: solid; }
.rb-ribbon.mine.c-B { background: #2a4aaa; border-style: solid; }
.rb-ribbon.mine.c-\? { background: #4a4a4a; border-style: solid; }
.rb-name { font-weight: 700; }
.rb-sees { color: var(--cream-dim); font-size: 0.75rem; }
.rb-memo { width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--cream); padding: 8px; font: inherit; font-size: 0.9rem; resize: vertical; }

/* 액자 고리 */
.au-hk .hk-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 6px 0 10px; }
.hk-hook { padding: 4px; border: 2px dashed var(--navy-light); border-radius: 10px; background: linear-gradient(180deg, #3a1422, #1e0810); cursor: pointer; color: var(--cream); }
.hk-hook.held { border: 2px solid var(--amber); }
.hk-hook.target { border-color: var(--teal-light); }
.hk-hook.goal .hk-label { color: var(--amber); }
.hk-svg { width: 100%; display: block; }
.hk-lift { filter: drop-shadow(0 0 6px rgba(242, 210, 122, 0.9)); }
.hk-label { font-size: 0.85rem; }
.hk-hook.shake { animation: au-shake 0.4s; }
@keyframes au-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* 비침무늬 */
.au-wm .wm-lamp { width: 100%; max-width: 300px; display: block; margin: 0 auto; border-radius: 10px; box-shadow: 0 0 40px rgba(255, 220, 140, 0.4); }
.wm-cap { font-size: 12px; fill: #5a3a1a; font-weight: 700; }
.au-wm .wm-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.wm-sheet { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; border: 2px solid transparent; background: #efe4c8; color: #3a2a1a; font-size: 0.85rem; cursor: pointer; }
.wm-sheet.over { border-color: var(--amber); box-shadow: 0 0 12px rgba(242, 196, 90, 0.7); }
.wm-sheet.chosen { border-color: #c8203a; }
.wm-mini { display: grid; grid-template-columns: repeat(4, 8px); gap: 3px; }
.wm-mini i { width: 8px; height: 8px; border-radius: 50%; background: #d8c8a0; }
.wm-mini i.on { background: #8a6a3a; }

/* 가계도 액자 */
.au-ft .ft-svg { width: 100%; max-width: 460px; display: block; margin: 0 auto; background: #2a1a10; border: 6px solid #c9a24a; border-radius: 4px; }
.ft-edge { fill: none; stroke: #6a5a3a; stroke-width: 0.8; }
.ft-edge.lit { stroke: #f2d27a; stroke-width: 1.2; }
.ft-prod { font-size: 3.6px; fill: #f2d27a; font-weight: 700; }
.ft-node { cursor: pointer; }
.ft-node rect { fill: #3a2a1a; stroke: #c9a24a; stroke-width: 0.6; }
.ft-node.filled rect { fill: #f2eada; }
.ft-val { font-size: 7px; font-weight: 700; fill: #3a2a1a; pointer-events: none; }
.ft-label { font-size: 3.4px; fill: #e8d8b0; pointer-events: none; }
.au-ft .ft-tiles { display: flex; justify-content: center; gap: 8px; margin: 10px 0; }
.ft-tile { width: 42px; height: 52px; border-radius: 6px; border: 2px solid #c9a24a; background: #f6eedc; color: #3a2a1a; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.ft-tile.held { transform: translateY(-6px); box-shadow: 0 0 12px rgba(242, 196, 90, 0.9); }
.ft-tile:disabled { opacity: 0.2; cursor: default; }

/* 서재의 책장 (lexrank 의 n번째 모드) */
.au-lx .lx-compose { margin-top: 10px; text-align: center; }
.au-lx .lx-compose small { color: var(--amber); }
.lx-word { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.lx-slot { width: 40px; height: 48px; border-radius: 4px; border: 2px dashed #8a6a3a; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; }
.lx-slot.on { border-style: solid; background: #5a2a2a; color: #f2d27a; }
.lx-pad { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.lx-key { min-width: 46px; height: 46px; border-radius: 6px; border: 2px solid #c9a24a; background: #3a1422; color: var(--cream); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.lx-key small { font-size: 0.7rem; margin-left: 2px; color: var(--cream-dim); }
.lx-key:disabled { opacity: 0.3; cursor: default; }

/* ── 2장 판 ── */
/* 연대순 다시 걸기 */
.au-is .is-wall { display: flex; align-items: flex-end; justify-content: safe center; gap: 1px; overflow-x: auto; padding: 10px 4px; background: linear-gradient(180deg, #2e2620, #1e1a16); border-radius: 8px; }
.is-art { flex: none; width: 50px; font-size: 0.85rem; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 2px; border: 3px solid #c9a24a; border-radius: 3px; background: var(--hue, #5a2a2a); color: #f6eedc; cursor: pointer; transition: transform 0.15s; }
.is-art.held { transform: translateY(-10px); box-shadow: 0 0 14px rgba(242, 196, 90, 0.9); }
.is-canvas { font-size: 0.8rem; }
.is-year { font-weight: 700; font-variant-numeric: tabular-nums; background: #f2eada; color: #3a2a1a; padding: 0 4px; border-radius: 3px; font-size: 0.85rem; }
.is-gap { flex: none; width: 12px; height: 60px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: transparent; cursor: default; }
.is-gap.on { background: rgba(242, 210, 122, 0.18); color: var(--amber); cursor: pointer; }
.is-gap.on:hover { background: rgba(242, 210, 122, 0.4); }

/* 작업 일정 */
.au-sc .sc-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.sc-slot { min-height: 96px; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 2px dashed var(--navy-light); border-radius: 8px; background: rgba(0, 0, 0, 0.25); color: var(--cream); cursor: pointer; text-align: left; }
.sc-slot.full { border-style: solid; border-color: var(--amber-dark); }
.sc-slot.late { border-color: #e05a4a; background: rgba(224, 90, 74, 0.15); }
.sc-slot.target { border-color: var(--teal-light); }
.sc-time { font-weight: 700; color: var(--amber); }
.sc-empty { color: var(--cream-dim); font-size: 0.8rem; }
.au-sc .sc-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.sc-card { padding: 6px; border: 2px solid #c9a24a; border-radius: 8px; background: #f2eada; color: #3a2a1a; cursor: pointer; text-align: left; }
.sc-card.held { transform: translateY(-4px); box-shadow: 0 0 12px rgba(242, 196, 90, 0.9); }
.sc-card:disabled { opacity: 0.25; cursor: default; }
.sc-card-in { display: grid; gap: 2px; }
.sc-card-in strong { font-size: 0.85rem; }
.sc-card-in small { font-size: 0.72rem; opacity: 0.8; }
.sc-card-in em { font-style: normal; font-weight: 700; color: #8a1a28; }
.sc-slot .sc-card-in { color: var(--cream); }
.sc-slot .sc-card-in em { color: var(--amber); }
.sc-late { color: #ff8a7a; font-size: 0.75rem; }
@media (max-width: 640px) { .au-sc .sc-slots { grid-template-columns: repeat(2, 1fr); } }

/* 토너먼트 표 */
.au-br .br-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-items: center; padding: 8px; background: #d8c8a0; border-radius: 6px; }
.br-col { display: flex; flex-direction: column; justify-content: space-around; gap: 6px; height: 100%; }
.br-head { text-align: center; color: #5a3a1a; font-weight: 700; }
.br-cell { padding: 6px 2px; border: 2px solid #8a6a3a; border-radius: 6px; background: #f2eada; color: #3a2a1a; font-size: 0.85rem; cursor: pointer; }
.br-cell.lost { text-decoration: line-through; text-decoration-color: rgba(138, 26, 40, 0.5); opacity: 0.75; }
.br-cell.champ { background: #f2d27a; font-weight: 700; }
.br-cell.picked { border-color: #8a1a28; box-shadow: 0 0 0 3px rgba(138, 26, 40, 0.5); background: #ffe8e0; opacity: 1; }

/* 세 원 겹침 */
.au-vn .vn-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.vn-svg { width: 100%; display: block; }
.vn-out { fill: rgba(0, 0, 0, 0.25); stroke: var(--line); }
.vn-c { fill-opacity: 0.18; stroke-width: 2; }
.vn-c.a { fill: #e07a5a; stroke: #e07a5a; }
.vn-c.b { fill: #5ab0e0; stroke: #5ab0e0; }
.vn-c.c { fill: #e0c060; stroke: #e0c060; }
.vn-name { font-size: 12px; fill: var(--cream); font-weight: 700; }
.vn-cell { cursor: pointer; }
.vn-cell circle { fill: #2a0e18; stroke: #c9a24a; stroke-width: 1.5; }
.vn-cell.sel circle { fill: #f2d27a; stroke: #fff; }
.vn-cell text { font-size: 12px; font-weight: 700; fill: #f6eedc; pointer-events: none; }
.vn-cell.sel text { fill: #2a0e18; }
.vn-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.85rem; }
.vn-checks li { display: flex; justify-content: space-between; gap: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.25); }
.vn-checks li.ok { background: rgba(90, 170, 110, 0.3); }
.vn-checks li.ok strong::after { content: " ✓"; color: #9ae0a8; }
.au-vn .vn-pad { display: flex; justify-content: center; gap: 8px; margin: 10px 0; }
@media (max-width: 640px) { .au-vn .vn-wrap { grid-template-columns: 1fr; } }

/* ── 3장 판 ── */
/* 회장의 체스판 (말 뛰어넘기) */
.au-pg .pg-board { width: 100%; max-width: 420px; display: block; margin: 0 auto; border: 6px solid #5a3420; border-radius: 4px; background: #2a160c; }
.pg-cell { cursor: pointer; }
.pg-cell rect { fill: #e8d8b0; stroke: #5a3420; stroke-width: 0.3; }
.pg-cell.dark rect { fill: #8a6a48; }
.pg-cell.can rect { fill: #f2d27a; }
.pg-cell:focus-visible { outline: none; }
.pg-cell:focus-visible rect { stroke: #f2c45a; stroke-width: 1; }
.pg-star { font-size: 11px; fill: #b8402a; opacity: 0.75; pointer-events: none; }
.pg-piece { pointer-events: none; }
.pg-piece .pg-base { fill: #0a0606; opacity: 0.4; }
.pg-piece .pg-body { fill: #1e1614; stroke: #5a4a44; stroke-width: 0.5; }
.pg-piece.held .pg-body { fill: #3a2a24; stroke: #f2c45a; stroke-width: 1; }

/* 온실의 물길 */
.au-tl .tl-svg { width: 100%; max-width: 560px; display: block; margin: 0 auto; background: linear-gradient(180deg, #1a2a22, #0e1a14); border-radius: 8px; }
.tl-pipe { cursor: pointer; }
.tl-pipe .tl-hit { stroke: transparent; stroke-width: 5; fill: none; }
.tl-pipe .tl-line { stroke: #8aa8a0; stroke-width: 1.4; fill: none; }
.tl-pipe.ext .tl-line { stroke: #f2c45a; stroke-width: 1.8; }
.tl-pipe:hover .tl-line, .tl-pipe:focus-visible .tl-line { stroke: #e8f4ec; }
.tl-pipe:focus-visible { outline: none; }
.tl-tag { fill: #0e1a14; stroke: #4a6a5a; stroke-width: 0.4; }
.tl-pipe.ext .tl-tag { stroke: #f2c45a; }
.tl-num { font-size: 4px; fill: #e8f4ec; pointer-events: none; }
.tl-tank { fill: #3a5a6a; stroke: #8ab8c8; stroke-width: 0.5; }
.tl-joint { fill: #8aa8a0; }
.tl-pot { fill: #a8603a; }
.tl-bud { fill: #6aa85a; }
.tl-label { font-size: 3.4px; fill: #c8d8c8; }
.tl-time { font-size: 3.8px; fill: #f2a07a; font-weight: 700; }
.tl-time.ok { fill: #9ae0a0; }
.au-tl .bd-tools .on { background: #6a2a3a; }

/* 패들 싸움 */
.au-bw .bw-choose { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; color: var(--cream-dim); }
.au-bw .bw-board { text-align: center; padding: 10px; border-radius: 8px; background: linear-gradient(180deg, #3a1422, #1e0810); border: 1px solid var(--line); }
.bw-now { display: flex; align-items: baseline; justify-content: center; gap: 6px; color: var(--cream-dim); }
.bw-now strong { font-size: 2.6rem; color: var(--amber); font-variant-numeric: tabular-nums; font-family: var(--font-title); }
.bw-bar { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.4); overflow: hidden; margin-top: 6px; }
.bw-bar span { display: block; height: 100%; background: linear-gradient(90deg, #c9a24a, #f2d27a); transition: width 0.3s; }
.au-bw .bw-pads { display: flex; justify-content: center; gap: 10px; margin: 12px 0; }
.bw-pad { width: 64px; height: 76px; border: 0; border-radius: 32px 32px 6px 6px; background: radial-gradient(circle at 50% 36%, #f6eedc 0 22px, #c9a24a 23px 26px, #5a3420 27px); color: #3a1422; font-weight: 700; font-size: 1.1rem; cursor: pointer; display: grid; place-items: start center; padding-top: 18px; transition: transform 0.15s; }
.bw-pad:disabled { opacity: 0.35; cursor: default; }
.bw-pad:not(:disabled):hover { transform: translateY(-4px); }
.au-bw .bw-log { max-height: 120px; overflow-y: auto; margin: 0 0 8px; padding-left: 24px; font-size: 0.88rem; color: var(--cream-dim); }
.bw-log li.me { color: var(--amber); }

/* 두 심지 초 */
.au-cd .cd-svg { width: 100%; max-width: 520px; display: block; margin: 0 auto; background: radial-gradient(ellipse at 50% 40%, #2a1a10, #0c0604); border-radius: 8px; }
.cd-dish { fill: #c9a24a; }
.cd-wax { fill: #f2ead6; }
.cd-drip { stroke: #e8dcb8; stroke-width: 1.4; fill: none; }
.cd-glow { fill: #ffb050; opacity: 0.25; }
.cd-fire { fill: #ffe6a0; }
.cd-flame { animation: au-flick 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes au-flick { 50% { transform: scale(0.9, 1.08); } }
@media (prefers-reduced-motion: reduce) { .cd-flame { animation: none; } }
.cd-label { font-size: 3.4px; fill: #c8b49a; }
.au-cd .cd-wicks { display: grid; gap: 6px; margin: 10px 0 6px; }
.cd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cd-row > span { min-width: 4.5em; color: var(--cream); }
.au-cd .cd-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0; }
.au-cd .cd-log { margin: 4px 0 8px; padding-left: 24px; font-size: 0.88rem; color: var(--cream-dim); }

/* 금고 바닥 */
.au-sp .sp-svg { width: 100%; max-width: 640px; display: block; margin: 0 auto; background: #1a1210; border-radius: 8px; }
.sp-floor { fill: #3a2a1c; stroke: #8a6a3a; stroke-width: 0.4; }
.sp-tick { stroke: #6a5a44; stroke-width: 0.3; }
.sp-spot { cursor: pointer; }
.sp-spot:focus-visible { outline: none; }
.sp-plate { fill: #6a5a44; stroke: #c8b898; stroke-width: 0.3; }
.sp-spot:hover .sp-plate, .sp-spot:focus-visible .sp-plate { fill: #8a7a5a; }
.sp-spot.on .sp-plate { fill: #c9a24a; }
.sp-weight { fill: #2a2a2e; }
.sp-num { font-size: 3.4px; fill: #c8b49a; }
.sp-gap { stroke: #8ab8a0; stroke-width: 0.5; }
.sp-gap.min { stroke: #e86a5a; stroke-width: 0.9; }
.sp-gnum { font-size: 3.4px; fill: #8ab8a0; }
.sp-gnum.min { fill: #e86a5a; font-weight: 700; }

/* 진짜 경매 */
.au-ra .ra-head { margin: 0 0 4px; color: var(--amber); font-family: var(--font-title); text-align: center; }
.au-ra .ra-records { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 10px; margin: 0 0 10px; padding: 8px 8px 8px 28px; border-radius: 8px; background: #f2ead6; color: #3a2a1a; font-size: 0.86rem; box-shadow: 0 0 18px rgba(242, 210, 122, 0.45); animation: ra-glow 2.6s ease-in-out infinite; }
@keyframes ra-glow { 50% { box-shadow: 0 0 30px rgba(242, 210, 122, 0.8); } }
@media (prefers-reduced-motion: reduce) { .au-ra .ra-records { animation: none; } }
.ra-records li { display: flex; gap: 6px; align-items: baseline; }
.ra-rname { font-weight: 700; white-space: nowrap; }
.ra-rtext { flex: 1; color: #6a5a44; }
.ra-records strong { color: #8a1a2a; font-variant-numeric: tabular-nums; }
.au-ra .ra-stage { position: relative; padding: 14px 10px 10px; border-radius: 8px; text-align: center; background: linear-gradient(180deg, #0c0306, #3a1422 70%, #5a3420); overflow: hidden; }
.ra-lights { position: absolute; inset: 0; background: radial-gradient(ellipse 40% 70% at 50% 0, rgba(255, 230, 160, 0.35), transparent); pointer-events: none; }
.ra-lot { position: relative; display: inline-flex; flex-direction: column; align-items: center; min-width: 150px; padding: 8px 18px; border-radius: 6px; background: #4a3a2a; border: 3px solid #c9a24a; color: var(--cream); }
.ra-lot strong { font-size: 2.4rem; font-family: var(--font-title); color: var(--amber); font-variant-numeric: tabular-nums; }
.ra-lot.bid { background: #6a1a2e; box-shadow: 0 0 22px rgba(242, 196, 90, 0.7); }
.ra-cloth { font-size: 0.8rem; color: var(--cream-dim); }
.ra-progress { position: relative; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.4); overflow: hidden; margin-top: 10px; }
.ra-progress span { display: block; height: 100%; background: #c9a24a; }
.au-ra .ra-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 6px; }
.au-ra .ra-jump { width: 6em; }
.au-ra .ra-paddle { background: #8a1a2a; }
.au-ra .ra-bids { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-bottom: 8px; color: var(--cream-dim); font-size: 0.9rem; }
.ra-chip { padding: 1px 8px; border-radius: 10px; background: #f2ead6; color: #6a1a2e; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 확대경의 흠: 마우스를 올려도 티가 나지 않게 */
.scene-hotspot.secret, .scene-hotspot.secret:hover, .scene-hotspot.secret:focus-visible { cursor: inherit; fill-opacity: 0; stroke-width: 0; filter: none; }

/* 2-9 장부 대조 (ledger) */
.au-lg .lg-look { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 8px; }
.au-lg .lg-look figure { margin: 0; width: 76px; text-align: center; background: rgba(0, 0, 0, 0.25); border: 1px solid #8a6a3a; border-radius: 6px; padding: 4px; }
.au-lg .lg-look img { width: 48px; height: 48px; display: block; margin: 0 auto; }
.au-lg .lg-look figcaption { font-size: 0.72rem; color: var(--cream); line-height: 1.2; }
.au-lg .lg-sheet { background: #efe4c8; color: #3a2414; border-radius: 4px; padding: 10px 10px 12px; box-shadow: inset 0 0 0 1px #b89a68, 0 4px 14px rgba(0, 0, 0, 0.4); }
.au-lg .lg-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #8a6a3a; padding-bottom: 4px; margin-bottom: 4px; }
.au-lg .lg-row { display: grid; grid-template-columns: 3.2em minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; width: 100%; text-align: left; padding: 5px 4px; border: 0; border-bottom: 1px dashed rgba(90, 58, 26, 0.35); background: transparent; color: inherit; font: inherit; font-size: 0.9rem; cursor: pointer; }
.au-lg .lg-row.lg-cols { cursor: default; font-size: 0.75rem; color: #6a4a2a; font-weight: 700; border-bottom: 1px solid #8a6a3a; }
.au-lg .lg-row .lg-c0 { color: #6a4a2a; font-variant-numeric: tabular-nums; }
.au-lg .lg-row .lg-c1 { font-weight: 700; }
.au-lg .lg-row.on { background: linear-gradient(transparent 18%, rgba(255, 226, 60, 0.75) 18%, rgba(255, 226, 60, 0.75) 86%, transparent 86%); }
.au-lg .lg-turn { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 8px 0 4px; }
.au-lg .lg-no { color: var(--cream); font-size: 0.9rem; }

/* 3-10 진짜 경매 (lotpick): 이어지는 경매 무대 */
.au-lp { outline: none; }
.au-lp .lp-stage { position: relative; height: 260px; border-radius: 8px; overflow: hidden; background: radial-gradient(ellipse at 50% 0%, #5a1a2a 0%, #2a0a14 60%, #140408 100%); box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.6); }
.au-lp .lp-light { position: absolute; left: 50%; top: -40px; width: 340px; height: 320px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 30%, rgba(255, 240, 200, 0.55), rgba(255, 240, 200, 0) 65%); pointer-events: none; }
.au-lp .lp-lot { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 230px; text-align: center; animation: lp-in 0.35s ease-out; }
.au-lp .lp-lot.empty { top: 80px; width: 80%; color: var(--cream); animation: none; }
@keyframes lp-in { from { transform: translateX(-20%); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.au-lp .lp-item { position: relative; width: 130px; height: 130px; margin: 0 auto; }
.au-lp .lp-item img { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6)); }
.au-lp .lp-cloth { position: absolute; inset: 55% -10% -6% -10%; background: linear-gradient(180deg, rgba(120, 20, 40, 0.0), rgba(120, 20, 40, 0.95) 40%); border-radius: 40% 40% 6px 6px; }
.au-lp .lp-tag { position: absolute; right: -6px; top: 6px; background: #f2e6c8; color: #3a1408; border: 2px solid #c9a24a; border-radius: 6px; padding: 2px 10px; transform: rotate(8deg); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); }
.au-lp .lp-tag small { display: block; font-size: 0.6rem; }
.au-lp .lp-tag strong { font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.au-lp .lp-name { margin-top: 6px; color: #f2e6c8; font-weight: 700; }
.au-lp .lp-bar { position: absolute; left: 10%; right: 10%; bottom: 12px; height: 8px; background: rgba(0, 0, 0, 0.5); border-radius: 4px; overflow: hidden; }
.au-lp .lp-bar span { display: block; height: 100%; width: 100%; background: #e8b84a; transition: width 60ms linear; }
.au-lp .lp-bar span.late { background: #e0503a; }
.au-lp .lp-rival, .au-lp .lp-friend { position: absolute; bottom: 0; width: 70px; }
.au-lp .lp-rival { right: 8px; }
.au-lp .lp-friend { left: 8px; }
.au-lp .lp-rival img, .au-lp .lp-friend img { width: 70px; height: 140px; object-fit: cover; object-position: top; opacity: 0.9; }
.au-lp .lp-bubble { position: absolute; bottom: 120px; width: 140px; padding: 4px 8px; background: #f2e6c8; color: #3a1408; border-radius: 10px; font-size: 0.8rem; opacity: 0; }
.au-lp .lp-rival .lp-bubble { right: 20px; }
.au-lp .lp-friend .lp-bubble { left: 20px; }
.au-lp .talk .lp-bubble { animation: lp-say 2.4s ease-out; }
@keyframes lp-say { 0% { opacity: 0; transform: translateY(6px); } 10%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.au-lp .lp-stamp { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-8deg); padding: 6px 16px; border: 4px solid; border-radius: 8px; font-size: 1.4rem; font-weight: 800; pointer-events: none; animation: lp-stamp 0.9s ease-out forwards; background: rgba(20, 4, 8, 0.6); }
.au-lp .lp-stamp.me { color: #ffe08a; border-color: #ffe08a; }
.au-lp .lp-stamp.rival { color: #e0b860; border-color: #a07020; font-size: 1.1rem; }
.au-lp .lp-stamp.none { color: #b8a8a8; border-color: #6a5a5a; font-size: 1rem; }
@keyframes lp-stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.8); } 25% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.au-lp .lp-call { min-height: 1.4em; margin: 8px 0 4px; text-align: center; color: var(--cream); font-weight: 700; }
.au-lp .lp-ctrl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.au-lp .lp-paddle { min-width: 150px; font-size: 1.25rem; padding: 12px 22px; background: #c8203a; border-color: #ffe08a; color: #fff; }
.au-lp .lp-paddle:disabled { opacity: 0.5; }
.au-lp .lp-start { min-width: 160px; font-size: 1.1rem; }
.au-lp .lp-speed { display: flex; gap: 6px; align-items: center; color: var(--cream); font-size: 0.85rem; }
.au-lp .lp-speed .on { border-color: #e8b84a; color: #ffe08a; }
.au-lp .lp-hand { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; color: var(--cream); font-size: 0.85rem; flex-wrap: wrap; }
.au-lp .lp-cards { display: flex; gap: 4px; flex-wrap: wrap; }
.au-lp .lp-card { width: 30px; height: 40px; border-radius: 4px; background: #f2e6c8; border: 2px solid #c9a24a; display: grid; place-items: center; color: #3a1408; font-size: 0.72rem; font-weight: 700; }
.au-lp .lp-card.used { background: #c8203a; color: #fff; border-color: #8a1020; }
.au-lp .lp-head { margin: 8px 0 4px; color: #e8cc8a; font-size: 0.85rem; }
.au-lp .lp-records { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px; }
.au-lp .lp-records li { display: grid; grid-template-columns: 1fr auto; gap: 0 6px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(201, 162, 74, 0.4); }
.au-lp .lp-records li.bid { border-color: #ffe08a; }
.au-lp .lp-rname { font-weight: 700; color: var(--cream); }
.au-lp .lp-rtext { grid-column: 1; font-size: 0.72rem; color: #c8b898; }
.au-lp .lp-records strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 1.2rem; color: #ffe08a; }
.au-lp .lp-records em { grid-column: 1 / span 2; font-size: 0.72rem; color: #ffb0a0; font-style: normal; }
@media (max-width: 520px) { .au-lp .lp-rival, .au-lp .lp-friend { width: 50px; } .au-lp .lp-rival img, .au-lp .lp-friend img { width: 50px; height: 100px; } .au-lp .lp-bubble { bottom: 90px; width: 110px; } }
