/* ============================================================
   LL093 地产大亨舞台（.dc-*），配套 js/fun-dichan.js。
   配色取自菜单长图：奶油底 + 金边棋盘 + 粉 / 薄荷 / 天蓝 / 薰衣草粉彩；房产格按价格分 6 档色带。
   棋盘内的尺寸都按棋盘宽度（容器查询单位 cqi）缩放，手机和桌面是同一套比例。
   ============================================================ */

.fw-overlay[data-entry="LL093"] .fw-stage { position: static; height: auto; overflow: visible; padding: 14px; }
@media (min-width: 981px) {
  .fw-overlay[data-entry="LL093"] .fw-entry { position: sticky; top: 0; }
}
/* 平板竖屏：右侧录入栏太挤会把棋盘压小，改成上下排，棋盘用满整行 */
@media (min-width: 761px) and (max-width: 980px) {
  .fw-overlay[data-entry="LL093"] .fw-play { grid-template-columns: minmax(0, 1fr); }
}

.dc {
  --dc-ink: #4a3523; --dc-soft: #8c7358; --dc-line: #f0dfc0; --dc-gold: #f0b23e; --dc-gold-2: #d48a14;
  --dc-pink: #ff7fa3; --dc-pink-2: #ec5b85; --dc-mint: #4fbf97; --dc-cream: #fffaf0;
  display: flex; flex-direction: column; gap: 14px; color: var(--dc-ink);
}
.dc svg { flex: none; }

/* ---------------- 棋盘外框 ---------------- */
.dc-board-frame {
  container: dc / inline-size;
  width: min(100%, 860px, max(540px, calc(100vh - 130px)));
  margin: 0 auto;
  padding: 1.3cqi;
  border-radius: 28px;
  background: linear-gradient(150deg, #fff4d2 0%, #f7d27c 34%, #fbe7b1 55%, #eab452 100%);
  box-shadow: 0 18px 40px rgba(150, 100, 30, 0.22), 0 2px 0 rgba(255, 255, 255, 0.8) inset, 0 -3px 0 rgba(176, 116, 22, 0.25) inset;
}
@supports not (container-type: inline-size) { .dc-board-frame { padding: 10px; } }
.dc-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 0.6cqi;
  aspect-ratio: 1;
  padding: 0.8cqi;
  border-radius: 22px;
  background:
    radial-gradient(circle at 1px 1px, rgba(232, 190, 120, 0.35) 1px, transparent 1.5px) 0 0 / 14px 14px,
    linear-gradient(180deg, #fffaf0, #fff3dc);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8) inset;
}

/* ---------------- 格子 ---------------- */
.dc-cell {
  --band: linear-gradient(180deg, #fbe2a8, #f3c96d); --band-ink: #6b4512; --body: #fffdf8; --tag: #fff3d4; --tag-ink: #9a640c;
  position: relative;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  min-width: 0; min-height: 0; margin: 0; padding: 0;
  overflow: hidden;
  font: inherit; color: var(--dc-ink); text-align: center;
  border: 0; border-radius: 1.5cqi;
  background: var(--body);
  box-shadow: 0 0.35cqi 0 rgba(176, 128, 56, 0.22), 0 0 0 1px rgba(214, 176, 116, 0.5) inset;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dc-cell:hover { transform: translateY(-0.25cqi); }
.dc-cell:focus-visible { outline: 3px solid #5aa9ff; outline-offset: 1px; z-index: 3; }
.dc-cell-name {
  display: block; width: 100%; padding: 0.4cqi 0.2cqi 0.3cqi;
  font-size: clamp(8.5px, 1.62cqi, 15px); font-weight: 900; line-height: 1.12; letter-spacing: 0.02em;
  color: var(--band-ink); background: var(--band);
  white-space: nowrap; overflow: hidden;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.dc-cell-name small { display: block; margin-top: 0.1cqi; font-size: 0.74em; font-weight: 800; opacity: 0.9; }
.dc-cell-name { position: relative; z-index: 1; }
.dc-cell-art { position: relative; width: 100%; min-height: 0; }
.dc-cell-art > img { position: absolute; left: 2%; top: 1%; width: 96%; height: 90%; object-fit: contain; filter: drop-shadow(0 0.25cqi 0.25cqi rgba(120, 80, 30, 0.18)); }
.dc-cell-art > .dc-cell-badge { left: auto; top: auto; right: 0; bottom: 18%; width: 38%; height: 40%; filter: drop-shadow(0 0.2cqi 0.25cqi rgba(80, 40, 20, 0.35)); }
.dc-cell-tag {
  position: absolute; left: 50%; bottom: 0.55cqi; z-index: 1; transform: translateX(-50%);
  padding: 0.15cqi 0.9cqi; border-radius: 999px; background: var(--tag); color: var(--tag-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85) inset, 0 0.25cqi 0.5cqi rgba(140, 100, 40, 0.18);
}
.dc-cell-tag b { display: inline-flex; align-items: center; gap: 0.2em; font: 400 clamp(9px, 1.55cqi, 14px)/1.15 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0.02em; white-space: nowrap; }
.dc-tag-coin::before { content: ""; width: 1.05em; height: 1.05em; background: url(../images/fun/dc/coin.webp) center / contain no-repeat; }
.dc-cell-tag .neg { color: #d6455f; }
.dc-cell-tag .pos { color: #2f9a6c; }

/* 房产：按价格分 6 档色带（80 / 90 / 100 / 110–120 / 140 / 160–180） */
.dc-cell.p1 { --band: linear-gradient(180deg, #a8ecd2, #73d3ad); --band-ink: #1d6b4e; --tag: #e2f8ef; --tag-ink: #1f7a57; }
.dc-cell.p2 { --band: linear-gradient(180deg, #b7dcfb, #84bdf0); --band-ink: #1f5d96; --tag: #e6f2fd; --tag-ink: #2565a3; }
.dc-cell.p3 { --band: linear-gradient(180deg, #d7ccff, #ae9bf0); --band-ink: #4a32a3; --tag: #f0ebff; --tag-ink: #5b42b8; }
.dc-cell.p4 { --band: linear-gradient(180deg, #ffd3b0, #f8ad78); --band-ink: #8a4313; --tag: #fff0e3; --tag-ink: #a4561d; }
.dc-cell.p5 { --band: linear-gradient(180deg, #ffc4d4, #f592ad); --band-ink: #93264b; --tag: #ffe9f0; --tag-ink: #b23a63; }
.dc-cell.p6 { --band: linear-gradient(180deg, #ffe39b, #f2bc45); --band-ink: #7a4a00; --tag: #fff3cf; --tag-ink: #9a6000; }
/* 特殊格 */
.dc-cell.t-start { --band: linear-gradient(180deg, #ff9fbc, #f46d94); --band-ink: #fff; --body: linear-gradient(180deg, #fff2f6, #ffe3ec); --tag: linear-gradient(180deg, #fff, #ffe7ef); --tag-ink: #d6406b; }
.dc-cell.t-start .dc-cell-name { text-shadow: 0 1px 0 rgba(170, 30, 70, 0.35); }
.dc-cell.t-chance { --band: linear-gradient(180deg, #ffb1c8, #ff86a8); --band-ink: #fff; --body: #fff4f8; --tag: #ffe3ec; --tag-ink: #c93a65; }
.dc-cell.t-chance .dc-cell-name { text-shadow: 0 1px 0 rgba(170, 30, 70, 0.3); }
.dc-cell.k-hosp { --band: linear-gradient(180deg, #ffd0cc, #f7a39c); --band-ink: #9b2b22; --body: #fff6f4; --tag: #ffe6e2; }
.dc-cell.k-win { --band: linear-gradient(180deg, #ffe7a6, #f7c74d); --band-ink: #7a4a00; --body: #fffaf0; --tag: #fff2cc; }
.dc-cell.k-lose { --band: linear-gradient(180deg, #dfe3ef, #b7bfd4); --band-ink: #3d4663; --body: #f7f8fb; --tag: #eceff6; }
.dc-cell.k-jail { --band: linear-gradient(180deg, #a9b0c2, #7d869c); --band-ink: #fff; --body: #f1f2f6; --tag: #e4e7ef; }
.dc-cell.k-jail .dc-cell-name { text-shadow: 0 1px 0 rgba(30, 36, 60, 0.4); }

/* 已购置：粉旗 + 粉色描边 */
.dc-cell.own { box-shadow: 0 0.35cqi 0 rgba(200, 70, 110, 0.28), 0 0 0 0.38cqi #ff86ab inset; }
.dc-cell.own .dc-cell-tag { background: linear-gradient(180deg, #ff9fbd, #f2648f); color: #fff; }
.dc-cell-flag { position: absolute; top: 1.7cqi; left: 0.2cqi; width: 30%; height: auto; transform-origin: 10% 95%; filter: drop-shadow(0 0.25cqi 0.3cqi rgba(150, 40, 80, 0.35)); pointer-events: none; }
/* 当前所在格 */
.dc-cell.here { z-index: 2; transform: translateY(-0.35cqi); box-shadow: 0 0 0 0.35cqi #fff, 0 0 0 0.75cqi var(--dc-gold), 0 0.8cqi 1.6cqi rgba(170, 110, 20, 0.35); }
.dc-cell.here.own { box-shadow: 0 0 0 0.38cqi #ff86ab inset, 0 0 0 0.35cqi #fff, 0 0 0 0.75cqi var(--dc-gold), 0 0.8cqi 1.6cqi rgba(170, 110, 20, 0.35); }
/* 买不起停在这格：琥珀色呼吸 + 「差 X」 */
.dc-cell.stuck { animation: dc-stuck 1.8s ease-in-out infinite; }
.dc-cell-lock {
  position: absolute; left: 5%; right: 5%; top: 32%; z-index: 1;
  padding: 0.25cqi 0; border-radius: 0.8cqi;
  font: 400 clamp(8.5px, 1.45cqi, 13px)/1.2 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #ffe6a6; background: rgba(74, 46, 18, 0.86); box-shadow: 0 0.3cqi 0.6cqi rgba(60, 30, 0, 0.3);
}
@keyframes dc-stuck { 50% { box-shadow: 0 0 0 0.35cqi #fff, 0 0 0 0.9cqi #ffb43c, 0 0 2.4cqi rgba(255, 170, 40, 0.6); } }
/* 棋子经过时闪一下 */
.dc-cell.pass { animation: dc-pass 0.55s ease-out; }
@keyframes dc-pass { 0% { filter: brightness(1.18) saturate(1.2); transform: translateY(-0.6cqi); } 100% { filter: none; transform: none; } }

/* ---------------- 中间面板 ---------------- */
.dc-center {
  position: relative; grid-row: 2 / 8; grid-column: 2 / 8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqi;
  min-width: 0; min-height: 0; margin: 0.7cqi; padding: 2.4cqi 2.6cqi 5.6cqi;
  overflow: hidden; border-radius: 2.4cqi;
  background: #fffaf0;
  box-shadow: 0 0 0 0.3cqi rgba(255, 255, 255, 0.9), 0 0 0 0.55cqi rgba(232, 184, 96, 0.55), 0 1cqi 2.4cqi rgba(160, 110, 40, 0.16) inset;
}
.dc-center > * { position: relative; z-index: 1; }
.dc-center-map { position: absolute !important; inset: 0; z-index: 0 !important; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; pointer-events: none; }
.dc-center::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 56% at 50% 52%, rgba(255, 251, 241, 0.92) 0%, rgba(255, 251, 241, 0.7) 55%, rgba(255, 251, 241, 0.18) 100%);
}

.dc-brand { display: flex; flex-direction: column; align-items: center; gap: 0.3cqi; text-align: center; }
.dc-eyebrow { font-size: clamp(8px, 1.15cqi, 11px); font-weight: 900; letter-spacing: 0.32em; color: #c98a2a; }
.dc-logo {
  position: relative; margin: 0;
  font: 400 clamp(26px, 6.6cqi, 64px)/1.05 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0.06em;
  color: #f4a52a;
  background: linear-gradient(180deg, #fff1a8 8%, #ffcf4a 42%, #f29a1c 72%, #e0740e 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.2cqi #d27410;
}
.dc-logo::before {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1;
  -webkit-text-fill-color: #fff; -webkit-text-stroke: 1.5cqi #fff; color: #fff;
  text-shadow: 0 0.7cqi 0 #f6c46b, 0 1cqi 1.6cqi rgba(190, 120, 20, 0.4);
}
.dc-tier { margin: 0.2cqi 0 0; font-size: clamp(10px, 1.75cqi, 16px); font-weight: 900; color: #8a5a1c; }

.dc-stats { display: flex; justify-content: center; gap: 1.6cqi; width: 100%; }
.dc-stat {
  display: flex; align-items: center; gap: 1cqi; min-width: 0; padding: 0.7cqi 2cqi 0.7cqi 0.8cqi;
  border-radius: 999px; background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 0.25cqi #fff inset, 0 0 0 0.45cqi rgba(240, 200, 120, 0.6), 0 0.6cqi 1.2cqi rgba(160, 110, 40, 0.16);
}
.dc-stat img { width: clamp(22px, 5.4cqi, 50px); height: auto; filter: drop-shadow(0 0.25cqi 0.3cqi rgba(140, 90, 20, 0.3)); }
.dc-stat span { display: flex; flex-direction: column; line-height: 1.05; }
.dc-stat b { font: 400 clamp(16px, 4.1cqi, 38px)/1 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; color: #7a4a10; font-variant-numeric: tabular-nums; }
.dc-stat small { font-size: clamp(9px, 1.4cqi, 13px); font-weight: 800; color: var(--dc-soft); }
.dc-stat.deeds b { color: #c33e6a; }

/* 骰子区 */
.dc-dice { display: flex; align-items: center; justify-content: center; gap: 2.6cqi; width: 100%; }
/* 骰子 = 倒角立方体：6 个面 + 12 条斜棱 + 8 个角三角 + 内芯，任何角度都是实心的，角上不透光。
   --dc-h 半边长、--dc-c 倒角；其余尺寸都由这两个算出（手机只改 --dc-h） */
.dc-die-scene {
  --dc-h: 7cqi; --dc-c: calc(var(--dc-h) * 0.24);
  --dc-ez: calc((2 * var(--dc-h) - var(--dc-c)) * 0.70711);
  --dc-kz: calc((3 * var(--dc-h) - 2 * var(--dc-c)) * 0.57735);
  --dc-k: calc(var(--dc-h) - var(--dc-c) * 0.7);
  --dc-w: calc(var(--dc-c) * 1.41421 + 1px);
  --dc-kt: calc(var(--dc-c) * 1.63299 + 1px);
  position: relative; flex: none; width: calc(var(--dc-h) * 2); height: calc(var(--dc-h) * 2); perspective: 80cqi;
}
.dc-die-tilt { position: relative; z-index: 1; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-17deg) rotateY(-21deg); }
.dc-die { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s cubic-bezier(0.18, 0.8, 0.22, 1); }
.dc-die > * { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dc-die .front { --dc-rot: rotateY(0deg); }
.dc-die .back { --dc-rot: rotateY(180deg); }
.dc-die .right { --dc-rot: rotateY(90deg); }
.dc-die .left { --dc-rot: rotateY(-90deg); }
.dc-die .top { --dc-rot: rotateX(90deg); }
.dc-die .bottom { --dc-rot: rotateX(-90deg); }
.dc-face {
  inset: calc(var(--dc-c) - 0.5px);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 7%; padding: 10%;
  background: linear-gradient(145deg, #ffffff 0%, #fdf8f0 55%, #f6ead8 100%);
  box-shadow: inset 0 0 0.7cqi rgba(196, 150, 86, 0.16);
  transform: var(--dc-rot) translateZ(var(--dc-h));
}
.dc-face i { border-radius: 50%; }
.dc-face i.on { background: radial-gradient(circle at 34% 30%, #8a5a3a 0%, #4a2a18 72%); box-shadow: inset 0 -0.12cqi 0.18cqi rgba(255, 255, 255, 0.3); }
.dc-face.f1 i.on { transform: scale(1.5); background: radial-gradient(circle at 34% 30%, #ffa0bb 0%, #e4466f 70%); }
.dc-core { inset: calc(var(--dc-c) * 0.7); background: #e6cfa8; transform: var(--dc-rot) translateZ(var(--dc-k)); }
.dc-edge { --dc-g: #f8eedf, #ecd9b9 50%, #f8eedf; left: var(--dc-c); top: calc(50% - var(--dc-w) / 2); width: calc((var(--dc-h) - var(--dc-c)) * 2 + 1px); height: var(--dc-w); margin-left: -0.5px; background: linear-gradient(180deg, var(--dc-g)); }
.dc-edge.e1, .dc-edge.e2, .dc-edge.e3, .dc-edge.e4 { left: calc(50% - var(--dc-w) / 2); top: var(--dc-c); width: var(--dc-w); height: calc((var(--dc-h) - var(--dc-c)) * 2 + 1px); margin: -0.5px 0 0; background: linear-gradient(90deg, var(--dc-g)); }
.dc-edge.e1 { transform: rotateY(45deg) translateZ(var(--dc-ez)); }
.dc-edge.e2 { transform: rotateY(135deg) translateZ(var(--dc-ez)); }
.dc-edge.e3 { transform: rotateY(-135deg) translateZ(var(--dc-ez)); }
.dc-edge.e4 { transform: rotateY(-45deg) translateZ(var(--dc-ez)); }
.dc-edge.e5 { transform: rotateX(45deg) translateZ(var(--dc-ez)); }
.dc-edge.e6 { transform: rotateX(135deg) translateZ(var(--dc-ez)); }
.dc-edge.e7 { transform: rotateX(-135deg) translateZ(var(--dc-ez)); }
.dc-edge.e8 { transform: rotateX(-45deg) translateZ(var(--dc-ez)); }
.dc-edge.e9 { transform: rotateZ(-45deg) rotateY(90deg) translateZ(var(--dc-ez)); }
.dc-edge.e10 { transform: rotateZ(45deg) rotateY(90deg) translateZ(var(--dc-ez)); }
.dc-edge.e11 { transform: rotateZ(135deg) rotateY(90deg) translateZ(var(--dc-ez)); }
.dc-edge.e12 { transform: rotateZ(-135deg) rotateY(90deg) translateZ(var(--dc-ez)); }
.dc-corner { left: calc(50% - var(--dc-kt) / 2); top: calc(50% - var(--dc-kt) / 2); width: var(--dc-kt); height: var(--dc-kt); background: #ead5b1; clip-path: polygon(50% 0, 93.3% 75%, 6.7% 75%); }
/* 8 个角：法线 (±1, ±1, ±1)，旋转矩阵由 (x, y, z) 正交基算出，三角形三个顶点正好接上三条斜棱 */
.dc-corner.k1 { transform: matrix3d(0.70711, -0.70711, 0, 0, 0.40825, 0.40825, -0.8165, 0, 0.57735, 0.57735, 0.57735, 0, 0, 0, 0, 1) translateZ(var(--dc-kz)); }
.dc-corner.k2 { transform: matrix3d(-0.70711, 0.70711, 0, 0, 0.40825, 0.40825, 0.8165, 0, 0.57735, 0.57735, -0.57735, 0, 0, 0, 0, 1) translateZ(var(--dc-kz)); }
.dc-corner.k3 { transform: matrix3d(-0.70711, -0.70711, 0, 0, 0.40825, -0.40825, -0.8165, 0, 0.57735, -0.57735, 0.57735, 0, 0, 0, 0, 1) translateZ(var(--dc-kz)); }
.dc-corner.k4 { transform: matrix3d(0.70711, 0.70711, 0, 0, 0.40825, -0.40825, 0.8165, 0, 0.57735, -0.57735, -0.57735, 0, 0, 0, 0, 1) translateZ(var(--dc-kz)); }
.dc-corner.k5 { transform: matrix3d(0.70711, 0.70711, 0, 0, -0.40825, 0.40825, -0.8165, 0, -0.57735, 0.57735, 0.57735, 0, 0, 0, 0, 1) translateZ(var(--dc-kz)); }
.dc-corner.k6 { transform: matrix3d(-0.70711, -0.70711, 0, 0, -0.40825, 0.40825, 0.8165, 0, -0.57735, 0.57735, -0.57735, 0, 0, 0, 0, 1) translateZ(var(--dc-kz)); }
.dc-corner.k7 { transform: matrix3d(-0.70711, 0.70711, 0, 0, -0.40825, -0.40825, -0.8165, 0, -0.57735, -0.57735, 0.57735, 0, 0, 0, 0, 1) translateZ(var(--dc-kz)); }
.dc-corner.k8 { transform: matrix3d(0.70711, -0.70711, 0, 0, -0.40825, -0.40825, 0.8165, 0, -0.57735, -0.57735, -0.57735, 0, 0, 0, 0, 1) translateZ(var(--dc-kz)); }
.dc-die-shadow { position: absolute; left: 6%; right: 6%; bottom: -30%; height: 20%; border-radius: 50%; background: radial-gradient(rgba(110, 70, 20, 0.3), transparent 70%); }
.dc-die.rolling { animation: dc-toss 1s cubic-bezier(0.25, 0.7, 0.3, 1); }
@keyframes dc-toss { 0% { translate: 0 0; } 35% { translate: 0 -4.2cqi; } 62% { translate: 0 0; } 78% { translate: 0 -1cqi; } 100% { translate: 0 0; } }

.dc-act { display: flex; flex-direction: column; align-items: flex-start; gap: 1.3cqi; min-width: 0; max-width: 40cqi; }
.dc-prompt { display: flex; flex-direction: column; gap: 0.35cqi; margin: 0; }
.dc-prompt b { font-size: clamp(13px, 2.35cqi, 22px); font-weight: 900; line-height: 1.2; color: var(--dc-ink); }
.dc-prompt span { font-size: clamp(10px, 1.6cqi, 14px); font-weight: 700; line-height: 1.4; color: var(--dc-soft); }
.dc-prompt.go b { color: #d9446f; }
.dc-prompt.warn b { color: #b8650c; }
.dc-prompt.gold b { color: #b9730a; }
.dc-act-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2cqi; }
.dc-roll {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.8cqi;
  min-height: clamp(34px, 6.2cqi, 56px); padding: 0 3.6cqi;
  font: 400 clamp(15px, 2.7cqi, 26px)/1 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0.08em; color: #fff;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #ff9fbe 0%, #ff6f99 55%, #ec4f7d 100%);
  box-shadow: 0 0.5cqi 0 #c23763, 0 1.1cqi 1.8cqi rgba(220, 70, 110, 0.35), 0 0.25cqi 0 rgba(255, 255, 255, 0.55) inset;
  text-shadow: 0 0.2cqi 0 rgba(160, 30, 70, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}
.dc-roll::before { content: ""; width: 1.1em; height: 1.1em; background: radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 20%), radial-gradient(circle at 70% 70%, #fff 0 18%, transparent 20%), radial-gradient(circle at 50% 50%, #fff 0 18%, transparent 20%), rgba(255, 255, 255, 0.25); border-radius: 22%; box-shadow: 0 0 0 0.15em rgba(255, 255, 255, 0.85) inset; }
.dc-roll:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-0.15cqi); }
.dc-roll:active:not(:disabled) { transform: translateY(0.4cqi); box-shadow: 0 0.1cqi 0 #c23763, 0 0.5cqi 1cqi rgba(220, 70, 110, 0.3); }
.dc-roll:disabled { cursor: default; filter: grayscale(0.4) brightness(0.98); opacity: 0.7; }
.dc-roll.ready { animation: dc-ready 1.6s ease-in-out infinite; }
@keyframes dc-ready { 50% { box-shadow: 0 0.5cqi 0 #c23763, 0 1.1cqi 2.6cqi rgba(255, 90, 140, 0.55), 0 0 0 0.9cqi rgba(255, 140, 175, 0.28), 0 0.25cqi 0 rgba(255, 255, 255, 0.55) inset; } }
.dc-roll:focus-visible, .dc-hand-toggle:focus-visible, .dc-hand-face:focus-visible { outline: 3px solid #5aa9ff; outline-offset: 2px; }
.dc-hand-toggle { padding: 0.4cqi 0.6cqi; font: inherit; font-size: clamp(10px, 1.5cqi, 13px); font-weight: 800; color: var(--dc-soft); background: none; border: 0; border-bottom: 1px dashed currentColor; cursor: pointer; }
.dc-hand-toggle:disabled { opacity: 0.5; cursor: default; }
.dc-hand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8cqi; }
.dc-hand[hidden] { display: none; }
.dc-hand > span { width: 100%; font-size: clamp(10px, 1.45cqi, 13px); font-weight: 800; color: var(--dc-soft); }
.dc-hand-face {
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 6%; width: clamp(26px, 4.6cqi, 42px); aspect-ratio: 1; padding: 13%;
  border: 0; border-radius: 22%; cursor: pointer;
  background: linear-gradient(145deg, #fff, #f6ead6); box-shadow: 0 0.3cqi 0 rgba(176, 128, 56, 0.35), 0 0 0 1px rgba(214, 176, 116, 0.6) inset;
}
.dc-hand-face i { border-radius: 50%; }
.dc-hand-face i.on { background: #5a3420; }
.dc-hand-face:hover { transform: translateY(-0.2cqi); }

/* 下一局机会 */
.dc-buffs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8cqi; max-width: 100%; }
.dc-buffs[hidden] { display: none; }
.dc-buffs-head { font-size: clamp(10px, 1.45cqi, 13px); font-weight: 900; color: #c93a65; }
.dc-buff {
  display: inline-flex; align-items: center; gap: 0.6cqi; padding: 0.4cqi 1.4cqi 0.4cqi 0.5cqi; border-radius: 999px;
  font-size: clamp(10px, 1.5cqi, 14px); font-weight: 800; color: #a62e57;
  background: linear-gradient(180deg, #fff, #ffe7ef); box-shadow: 0 0 0 1px #ffc2d4 inset, 0 0.3cqi 0.6cqi rgba(220, 80, 120, 0.15);
}
.dc-buff img { width: clamp(16px, 3cqi, 28px); height: auto; }

.dc-foot { position: absolute !important; left: 2.6cqi; right: 2.2cqi; bottom: 1.6cqi; display: flex; align-items: center; justify-content: space-between; gap: 1cqi; }
.dc-lap { min-width: 0; font-size: clamp(9px, 1.35cqi, 12px); font-weight: 800; color: var(--dc-soft); }
.dc-foot .mg-sound { flex: none; padding: 0.3cqi 1.1cqi; font-size: clamp(10px, 1.35cqi, 12px); border-color: #f0d7a8; color: #8a5a1c; }

/* 点格子看详情 */
.dc-tip {
  position: absolute !important; left: 2.4cqi; right: 2.4cqi; bottom: 2cqi; z-index: 4 !important;
  display: flex; align-items: center; gap: 1.6cqi; padding: 1.2cqi 4.4cqi 1.2cqi 1.4cqi;
  border-radius: 1.8cqi; background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0 0 0.3cqi #ffe3a6 inset, 0 1.2cqi 2.6cqi rgba(120, 80, 30, 0.25);
  animation: dc-tip-in 0.22s ease-out;
}
.dc-tip[hidden] { display: none; }
.dc-tip img { width: clamp(40px, 9cqi, 84px); height: auto; flex: none; }
.dc-tip div { display: flex; flex-direction: column; gap: 0.4cqi; min-width: 0; }
.dc-tip b { font-size: clamp(12px, 1.9cqi, 17px); font-weight: 900; }
.dc-tip span { font-size: clamp(10px, 1.6cqi, 14px); font-weight: 700; line-height: 1.45; color: var(--dc-soft); }
.dc-tip button { position: absolute; top: 0.8cqi; right: 1cqi; width: clamp(24px, 3.6cqi, 32px); aspect-ratio: 1; border: 0; border-radius: 50%; background: #fff3dc; color: #8a5a1c; font-size: clamp(14px, 2.2cqi, 20px); font-weight: 900; line-height: 1; cursor: pointer; }
@keyframes dc-tip-in { from { opacity: 0; transform: translateY(1.4cqi); } }

/* ---------------- 棋子：灵鹿 ---------------- */
.dc-token {
  position: absolute; z-index: 6; width: 4.8%; left: 8.75%; top: 11.9%;
  transform: translate(-50%, -100%);
  transition: left 0.22s cubic-bezier(0.3, 0.7, 0.4, 1), top 0.22s cubic-bezier(0.3, 0.7, 0.4, 1);
  pointer-events: none;
}
.dc-token-hop { position: relative; z-index: 1; display: block; transform-origin: 50% 100%; }
.dc-token img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0.3cqi 0.35cqi rgba(80, 40, 20, 0.35)); }
.dc-token[data-pose="jump"] { width: 7.5%; }
.dc-token[data-pose="cheer"] { width: 4.6%; }
.dc-token[data-pose="wait"] { width: 5.2%; }
.dc-token-shadow { position: absolute; left: 10%; right: 10%; bottom: -3%; height: 9%; border-radius: 50%; background: radial-gradient(rgba(80, 50, 20, 0.38), transparent 70%); }
.dc-token[data-pose="wave"] .dc-token-hop, .dc-token[data-pose="wait"] .dc-token-hop { animation: dc-idle 2.6s ease-in-out infinite; }
.dc-token[data-pose="cheer"] .dc-token-hop { animation: dc-cheer 0.9s ease-in-out 2; }
@keyframes dc-idle { 50% { transform: translateY(-3%) scale(1.01, 0.99); } }
@keyframes dc-cheer { 30% { transform: translateY(-14%); } 55% { transform: none; } }

/* 飘字 */
.dc-float {
  position: absolute; z-index: 9; padding: 0.5cqi 1.4cqi; border-radius: 999px; pointer-events: none; white-space: nowrap;
  font: 400 clamp(12px, 2.3cqi, 22px)/1.1 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0.04em; color: #fff;
  background: linear-gradient(180deg, #6fd6ae, #33a97c); box-shadow: 0 0.4cqi 1cqi rgba(30, 120, 80, 0.35), 0 0 0 0.25cqi #fff;
}
.dc-float.down { background: linear-gradient(180deg, #ff8f8f, #e2555d); box-shadow: 0 0.4cqi 1cqi rgba(200, 60, 60, 0.35), 0 0 0 0.25cqi #fff; }
.dc-float.gold { background: linear-gradient(180deg, #ffd56a, #f0a21c); color: #6a3d00; box-shadow: 0 0.4cqi 1cqi rgba(200, 130, 20, 0.4), 0 0 0 0.25cqi #fff; }
.dc-float.pink { background: linear-gradient(180deg, #ff9fbe, #ec5b85); box-shadow: 0 0.4cqi 1cqi rgba(220, 70, 110, 0.35), 0 0 0 0.25cqi #fff; }

/* 结单 */
.dc-ribbon {
  position: absolute !important; top: 2.2cqi; right: -5.2cqi; z-index: 3 !important; width: 22cqi; padding: 0.6cqi 0;
  font: 400 clamp(11px, 2cqi, 18px)/1.2 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0.2em; text-align: center; color: #6a3d00;
  background: linear-gradient(180deg, #ffe58a, #f3b733); box-shadow: 0 0.4cqi 1cqi rgba(180, 110, 10, 0.35); transform: rotate(38deg);
}
.dc-ribbon[hidden] { display: none; }
.dc.done .dc-center { box-shadow: 0 0 0 0.3cqi #fff, 0 0 0 0.6cqi #ffcf4a, 0 0 3cqi rgba(255, 200, 60, 0.45); }
.dc.done .dc-logo::after { content: ""; position: absolute; inset: -20% -10%; background: radial-gradient(circle at 20% 30%, #fff 0 2%, transparent 3%), radial-gradient(circle at 82% 22%, #fff 0 1.6%, transparent 2.6%), radial-gradient(circle at 70% 85%, #fff 0 2%, transparent 3%); animation: dc-twinkle 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes dc-twinkle { 50% { opacity: 0.2; } }

/* ---------------- 我的地皮 ---------------- */
.dc-deeds { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; border-radius: 20px; background: linear-gradient(180deg, #fffaf0, #fff4e0); box-shadow: 0 0 0 1px var(--dc-line) inset; }
.dc-deeds-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dc-deeds-head h4 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; font-weight: 900; color: var(--dc-ink); }
.dc-deeds-head h4 svg { color: #e2a12c; font-size: 18px; }
.dc-deeds-head span { padding: 3px 12px; border-radius: 999px; font: 400 15px/1.3 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; color: #c33e6a; background: #ffe8ef; }
.dc-deeds-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.dc-deed {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 9px;
  border-radius: 14px; text-align: center; background: rgba(255, 255, 255, 0.55); border: 1.5px dashed #ecd3a8;
}
.dc-deed img { width: 58px; height: 52px; object-fit: contain; opacity: 0.32; filter: grayscale(0.6); }
.dc-deed b { font-size: 13px; font-weight: 900; color: var(--dc-soft); }
.dc-deed small { font-size: 11px; font-weight: 700; color: #b9a27f; }
.dc-deed.got { border: 0; background: #fff; box-shadow: 0 0 0 2px #ffb3c9 inset, 0 6px 14px rgba(220, 90, 130, 0.14); }
.dc-deed.got::after { content: ""; position: absolute; top: 6px; right: 6px; width: 20px; height: 26px; background: url(../images/fun/dc/flag.webp) center / contain no-repeat; }
.dc-deed.got img { opacity: 1; filter: drop-shadow(0 3px 3px rgba(120, 80, 30, 0.2)); }
.dc-deed.got b { color: var(--dc-ink); }
.dc-deed.got small { color: #c33e6a; }

/* ---------------- 右侧录入区 ---------------- */
.dc-entry { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; color: #4a3523; }
.dc-entry[hidden] { display: none; }
.dc-entry svg { flex: none; }
.dc-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 14px;
  border-radius: 16px; background: linear-gradient(135deg, #fff0f5, #ffe1ea); box-shadow: 0 0 0 1px #ffc2d4 inset;
}
.dc-callout > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; font-weight: 700; color: #9a5a6c; }
.dc-callout > span svg { display: none; }
.dc-callout b { font-size: 14px; font-weight: 900; color: #d9446f; }
.dc-callout.info { background: linear-gradient(135deg, #fff8e6, #ffefcc); box-shadow: 0 0 0 1px #f7d48a inset; }
.dc-callout.info > span { color: #8a6a3a; }
.dc-callout.info b { color: #b8650c; }
.dc-callout .fw-button { flex: none; background: linear-gradient(180deg, #ff9fbe, #ec5b85); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(220, 70, 110, 0.3); }
.dc-entry-block { display: flex; flex-direction: column; gap: 8px; }
.dc-entry-block.buff { padding: 10px; border-radius: 14px; background: #fff5f8; box-shadow: 0 0 0 1px #ffd3e0 inset; }
.dc-entry-label { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 900; color: #4a3523; }
.dc-entry-label small { font-size: 11px; font-weight: 700; color: #a48a6a; }
.dc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 14px; background: #f8efdf; }
.dc-seg button {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 48px; padding: 6px 4px;
  font: inherit; color: #6c5438; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.dc-seg button b { font-size: 15px; font-weight: 900; }
.dc-seg button small { font-size: 11px; font-weight: 700; opacity: 0.8; }
.dc-seg button:hover { background: rgba(255, 255, 255, 0.7); }
.dc-seg button.on { color: #fff; background: linear-gradient(180deg, #ffc95a, #ef9c1c); box-shadow: 0 3px 0 #c97c0c, 0 6px 14px rgba(220, 140, 20, 0.28); text-shadow: 0 1px 0 rgba(150, 80, 0, 0.35); }
.dc-seg button:focus-visible, .dc-step button:focus-visible { outline: 3px solid #5aa9ff; outline-offset: 1px; }
.dc-counter { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #f0e1c6 inset; }
.dc-counter.has { box-shadow: 0 0 0 2px #ffc3d4 inset; background: #fffafc; }
.dc-counter > img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.dc-counter-text { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.dc-counter-text b { font-size: 13px; font-weight: 900; }
.dc-counter-text small { font-size: 11px; font-weight: 700; color: #a48a6a; }
.dc-step { display: flex; align-items: center; gap: 2px; flex: none; padding: 3px; border-radius: 999px; background: #f8efdf; }
.dc-step button { width: 34px; height: 34px; border: 0; border-radius: 50%; font-size: 20px; font-weight: 900; line-height: 1; color: #8a5a1c; background: #fff; box-shadow: 0 2px 0 rgba(200, 160, 100, 0.45); cursor: pointer; }
.dc-step button:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.dc-step output { min-width: 28px; text-align: center; font: 400 18px/1 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; color: #c33e6a; font-variant-numeric: tabular-nums; }
.dc-double { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #ffd3e0 inset; }
.dc-double img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.dc-double span { display: flex; flex-direction: column; gap: 1px; }
.dc-double b { font-size: 13px; font-weight: 900; color: #c33e6a; }
.dc-double small { font-size: 11px; font-weight: 700; line-height: 1.45; color: #9a6a7a; }

/* 手动录入确认弹窗 */
.dc-confirm { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.dc-confirm p { margin: 0; }
.dc-confirm-die { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 6%; width: 64px; aspect-ratio: 1; padding: 12%; margin-bottom: 6px; border-radius: 22%; background: linear-gradient(145deg, #fff, #f6ead6); box-shadow: 0 4px 0 rgba(176, 128, 56, 0.35), 0 0 0 1px rgba(214, 176, 116, 0.6) inset; }
.dc-confirm-die i { border-radius: 50%; }
.dc-confirm-die i.on { background: #5a3420; }

/* ---------------- 窄棋盘（手机）：收起次要文字 ---------------- */
@container dc (max-width: 560px) {
  .dc-cell-name small, .dc-eyebrow, .dc-hand > span { display: none; }
  .dc-cell-name { padding: 0.7cqi 0.1cqi 0.5cqi; }
  .dc-cell-tag { left: auto; right: 0.3cqi; bottom: 0.3cqi; transform: none; padding: 0 0.6cqi; }
  .dc-cell-tag b { font-size: 8.5px; }
  .dc-tag-coin::before { display: none; }
  .dc-cell-art > img { left: 0; top: 0; width: 100%; height: 100%; }
  .dc-cell-art > .dc-cell-badge { display: none; }
  .dc-cell-flag { top: 2.8cqi; width: 34%; }
  .dc-center { padding: 2cqi 2cqi 1.6cqi; gap: 1.4cqi; }
  .dc-tier { font-size: 10px; }
  .dc-stat { padding: 0.5cqi 1.8cqi 0.5cqi 0.6cqi; }
  .dc-dice { gap: 3cqi; }
  .dc-die-scene { --dc-h: 7.5cqi; }
  .dc-act { max-width: 40cqi; }
  .dc-lap { display: none; }
  .dc-foot { justify-content: flex-end; }
  .dc-buff { padding: 0.4cqi 0.8cqi 0.4cqi 0.4cqi; }
  .dc-token { width: 6.4%; }
  .dc-token[data-pose="jump"] { width: 10%; }
  .dc-token[data-pose="cheer"] { width: 6.2%; }
  .dc-token[data-pose="wait"] { width: 7%; }
}
@media (max-width: 760px) {
  .fw-overlay[data-entry="LL093"] .fw-stage { padding: 8px; }
  .dc-board-frame { border-radius: 20px; }
  .dc-board { border-radius: 15px; }
  .dc-deeds { padding: 12px; }
  .dc-deeds-row { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
  .dc-deed img { width: 48px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-token, .dc-die, .dc-cell { transition: none !important; }
  .dc-roll.ready, .dc-cell.stuck, .dc-token-hop, .dc.done .dc-logo::after { animation: none !important; }
}
