/* ============ 大富翁3D · 苹果美学主题 ============ */
:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --cream: #fffdf7;
  --gold: #ffd60a;
  --gold-2: #ff9f0a;
  --red: #ff453a;
  --green: #30d158;
  --blue: #0a84ff;
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --hairline: rgba(0, 0, 0, 0.08);
  --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.10);
  --shadow-2: 0 2px 6px rgba(0,0,0,.08), 0 16px 44px rgba(0,0,0,.16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #7ec8f7;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#c3d { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }

/* 画面暗角（苹果风景深） */
.vignette {
  position: fixed; inset: 0; z-index: 10; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 42%, transparent 58%, rgba(20,16,8,.16) 100%);
}
/* 细滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.28); }
/* 金额数字等宽，减少跳动 */
.pcard .pmoney, .target-card .tmoney, .rank-row .rm, #log .lmsg {
  font-variant-numeric: tabular-nums;
}

/* ---------- 通用按钮（胶囊 + 柔和投影） ---------- */
button { font-family: inherit; cursor: pointer; border: none; background: none; color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 9px 20px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .16s cubic-bezier(.3,1.5,.5,1), box-shadow .16s, filter .16s;
}
.btn:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.05); }
.btn:active { transform: scale(.96); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn:disabled { filter: grayscale(.6) brightness(1.05); opacity: .55; pointer-events: none; }
.btn.gold { background: linear-gradient(#ffd60a, #ff9f0a); color: #4a2c00; }
.btn.red { background: linear-gradient(#ff6b5e, #ff453a); }
.btn.green { background: linear-gradient(#46e07c, #30d158); color: #06360f; }
.btn.ghost { background: rgba(255,255,255,.75); color: var(--ink); backdrop-filter: blur(12px); }

.small-btn {
  font-weight: 600; font-size: 13px; color: var(--ink);
  background: var(--glass); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255,255,255,.6); border-radius: 999px;
  padding: 6px 13px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .14s, background .14s, box-shadow .14s, opacity .2s;
}
.small-btn:hover { transform: translateY(-1px); background: var(--glass-strong); }
.small-btn:active { transform: scale(.95); }
.small-btn.muted { opacity: .45; }

.big-btn {
  font-weight: 700; font-size: 24px; letter-spacing: 1px;
  color: #4a2c00;
  background: linear-gradient(#ffd60a, #ff9f0a);
  border-radius: 999px;
  padding: 13px 46px;
  box-shadow:
    0 4px 14px rgba(255,159,10,.38),
    0 14px 40px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.65),
    inset 0 -2px 0 rgba(0,0,0,.07);
  animation: breathe 2.6s ease-in-out infinite;
  transition: transform .16s cubic-bezier(.3,1.5,.5,1), box-shadow .16s;
}
.big-btn:hover { transform: translateY(-2px) scale(1.02); }
.big-btn:active { transform: scale(.96); box-shadow: 0 2px 8px rgba(255,159,10,.3), 0 6px 18px rgba(0,0,0,.12); }
.big-btn:disabled {
  animation: none; filter: grayscale(.5); opacity: .6;
  box-shadow: 0 6px 20px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.5);
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 4px 14px rgba(255,159,10,.38), 0 14px 40px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.65); }
  50% { box-shadow: 0 4px 20px rgba(255,159,10,.5), 0 18px 48px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.65); }
}
.mid-btn {
  font-weight: 600; font-size: 15px; color: #06360f;
  background: linear-gradient(#46e07c, #30d158);
  border-radius: 999px;
  padding: 9px 20px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .16s cubic-bezier(.3,1.5,.5,1), box-shadow .16s;
}
.mid-btn:hover { transform: translateY(-1px); }
.mid-btn:active { transform: scale(.96); }
.mid-btn:disabled { filter: grayscale(.6); opacity: .55; pointer-events: none; }

/* ---------- 遮罩 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #fafafc 0%, #f0f0f5 45%, #e8e8ee 100%);
  overflow: auto;
}
.overlay::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,.035) 6%, transparent 7%);
  background-size: 88px 88px;
}

/* ---------- 开局设置 ---------- */
.setup-card {
  position: relative; width: min(900px, 94vw); margin: 24px auto;
  background: var(--glass-strong);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.9);
  padding: 34px 38px 40px;
}
.setup-title {
  text-align: center; font-size: 54px; font-weight: 600; letter-spacing: 16px;
  background: linear-gradient(180deg, #ffd60a 0%, #ff9f0a 55%, #f7670a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(200,110,0,.28));
  margin-bottom: 6px;
}
.setup-sub {
  text-align: center; font-weight: 500; color: var(--ink-soft); margin-bottom: 24px; letter-spacing: 6px; font-size: 14px;
}
.player-slots { display: flex; flex-direction: column; gap: 12px; }
.slot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.85);
  transition: box-shadow .18s;
}
.slot:hover { box-shadow: 0 2px 6px rgba(0,0,0,.07), 0 10px 26px rgba(0,0,0,.12); }
.slot-idx {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 18px; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.4);
}
.slot input[type=text] {
  flex: 1 1 120px; min-width: 110px; font-size: 16px; font-weight: 500;
  padding: 9px 14px; border: 1px solid var(--hairline); border-radius: 12px;
  background: rgba(255,255,255,.9); color: var(--ink); outline: none; font-family: inherit;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
  transition: box-shadow .15s, border-color .15s;
}
.slot input[type=text]:focus {
  border-color: rgba(10,132,255,.5);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.04), 0 0 0 4px rgba(10,132,255,.16);
}
.char-row { display: flex; gap: 9px; flex-wrap: wrap; }
.char-opt {
  width: 60px; height: 60px; border-radius: 50%; padding: 3px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.9);
  cursor: pointer;
  transition: transform .16s cubic-bezier(.3,1.5,.5,1), box-shadow .16s;
}
.char-opt img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.char-opt:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 6px 16px rgba(0,0,0,.16); }
.char-opt.sel {
  box-shadow: 0 0 0 3px #ff9f0a, 0 8px 20px rgba(255,159,10,.3);
  transform: translateY(-2px);
}
.type-toggle { display: flex; border: 1px solid var(--hairline); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.7); box-shadow: inset 0 1px 3px rgba(0,0,0,.05); }
.type-toggle button {
  font-weight: 500; font-size: 13px; padding: 8px 14px; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.type-toggle button.on {
  background: linear-gradient(#ffd60a, #ff9f0a); color: #4a2c00; font-weight: 600;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}
.setup-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.setup-money-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.money-label { font-weight: 600; font-size: 15px; color: var(--ink); }
.money-opts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.money-opts .opt {
  font-weight: 500; font-size: 13px; padding: 8px 15px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: rgba(255,255,255,.7); cursor: pointer; color: var(--ink-soft);
  box-shadow: var(--shadow-1);
  transition: transform .14s, background .14s, color .14s;
}
.money-opts .opt:hover { transform: translateY(-1px); }
.money-opts .opt.on { background: linear-gradient(#ffd60a, #ff9f0a); color: #4a2c00; font-weight: 600; }
.money-input {
  width: 118px; font-size: 15px; font-weight: 600;
  padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--ink); outline: none; font-family: inherit;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
  transition: border-color .15s, box-shadow .15s;
  font-variant-numeric: tabular-nums;
}
.money-input:focus {
  border-color: rgba(10,132,255,.5);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.04), 0 0 0 4px rgba(10,132,255,.16);
}
.mode-select { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-select .opt {
  font-weight: 500; font-size: 13px; padding: 8px 15px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: rgba(255,255,255,.7); cursor: pointer; color: var(--ink-soft);
  box-shadow: var(--shadow-1); transition: transform .14s, background .14s, color .14s;
}
.mode-select .opt:hover { transform: translateY(-1px); }
.mode-select .opt.on {
  background: linear-gradient(#ffd60a, #ff9f0a); color: #4a2c00; font-weight: 600;
}
.start-btn {
  margin-left: auto; font-size: 22px; font-weight: 600; color: #fff; letter-spacing: 4px;
  background: linear-gradient(#ff6b5e, #ff453a);
  border-radius: 999px; padding: 13px 40px;
  box-shadow: 0 4px 14px rgba(255,69,58,.4), 0 12px 30px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .16s cubic-bezier(.3,1.5,.5,1), box-shadow .16s;
}
.start-btn:hover { transform: translateY(-2px) scale(1.02); }
.start-btn:active { transform: scale(.96); }
.player-count { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.player-count button { font-size: 18px; padding: 5px 15px; }
.player-count span { font-size: 17px; min-width: 24px; text-align: center; }
.dev-credit {
  margin-top: 20px; text-align: center;
  font-size: 12px; font-weight: 500; letter-spacing: 2px;
  color: rgba(60,60,67,.42);
}

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
#hud > * { pointer-events: auto; }
#topbar {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 12px;
}
#logo-mini {
  font-weight: 700; font-size: 21px; letter-spacing: 1px;
  background: linear-gradient(180deg, #ffd60a, #ff9f0a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(200,110,0,.3));
  background-color: transparent;
  padding: 8px 16px;
}
#turn-banner {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.8);
  max-width: 540px; margin: 0 auto;
}
#turn-banner.pulse { animation: bannerpulse .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes bannerpulse {
  0% { transform: scale(.94); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
#turn-chip {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.45);
}
#turn-text { font-weight: 600; font-size: 17px; }
#turn-sub { font-weight: 400; font-size: 13px; color: var(--ink-soft); }
#top-btns { display: flex; gap: 8px; }

#players {
  position: absolute; top: 88px; left: 12px; width: 224px;
  display: flex; flex-direction: column; gap: 9px;
}
.pcard {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px;
  padding: 7px 11px 7px 7px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.85);
  transition: transform .2s cubic-bezier(.3,1.5,.5,1), background .2s, box-shadow .2s, opacity .3s, filter .3s;
}
.pcard:hover { transform: translateX(4px); box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 10px 24px rgba(0,0,0,.16); }
.pcard.active {
  background: rgba(255,255,255,.86);
  transform: translateX(6px) scale(1.03);
  box-shadow: 0 0 0 2px rgba(255,159,10,.85), 0 12px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.95);
}
.pcard.out { opacity: .45; filter: grayscale(.85); }
.pcard.money-pulse { animation: moneypulse .6s ease-out; }
@keyframes moneypulse {
  0% { box-shadow: 0 0 0 0 rgba(255,159,10,.85), 0 0 0 2px rgba(255,159,10,.85), 0 12px 30px rgba(0,0,0,.18); }
  100% { box-shadow: 0 0 0 2px rgba(255,159,10,0), 0 0 0 2px rgba(255,159,10,0), 0 12px 30px rgba(0,0,0,.18); }
}
.pcard img.avatar {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .2s;
}
.pcard.active img.avatar { transform: scale(1.1) rotate(-3deg); }
.pcard .pinfo { flex: 1; min-width: 0; }
.pcard .pname { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; }
.pcard .pname .tag { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: rgba(0,0,0,.07); color: var(--ink-soft); }
.pcard .pmoney { font-weight: 600; font-size: 13px; color: #b45309; display: flex; align-items: center; gap: 4px; }
.pcard .pmoney img { width: 22px; height: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.pcard .pmeta { font-size: 11px; font-weight: 500; color: var(--ink-soft); }

#log {
  position: absolute; left: 12px; bottom: 128px; width: 224px; max-height: 34vh;
  overflow-y: auto; display: flex; flex-direction: column; gap: 5px;
}
#log .lmsg {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 13px;
  padding: 6px 10px; font-size: 12px; font-weight: 500; line-height: 1.4;
  box-shadow: var(--shadow-1);
  animation: slidein .3s cubic-bezier(.3,1.4,.5,1);
}
@keyframes slidein { from { transform: translateX(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

#controls {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
#items { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 72vw; }
.item-btn {
  position: relative; width: 76px; height: 86px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 16px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.85);
  padding: 6px 4px 3px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .16s cubic-bezier(.3,1.5,.5,1), box-shadow .16s;
}
.item-btn:hover:not(:disabled) { transform: translateY(-4px) scale(1.05); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.item-btn:active:not(:disabled) { transform: translateY(1px) scale(.97); }
.item-btn img { width: 46px; height: 46px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.item-btn .iname { font-size: 11px; font-weight: 600; }
.item-btn .icount {
  position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px;
  border-radius: 12px; background: var(--red); color: #fff;
  font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
  box-shadow: 0 2px 6px rgba(255,69,58,.45), inset 0 1px 0 rgba(255,255,255,.35);
}
.item-btn:disabled { filter: grayscale(.8) brightness(.94); opacity: .65; pointer-events: none; }
#ctrl-btns { display: flex; gap: 10px; align-items: center; }

/* ---------- 弹窗 ---------- */
#modal-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.modal-mask {
  position: absolute; inset: 0; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22,22,26,.3);
  backdrop-filter: blur(8px) saturate(120%);
  animation: fadein .2s ease-out;
  perspective: 1200px;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  background: var(--glass-strong);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 26px;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.95);
  padding: 26px 30px; max-width: 92vw; max-height: 90vh; overflow: auto;
  animation: popin .4s cubic-bezier(.25,1.4,.45,1);
}
@keyframes popin {
  from { transform: scale(.86) translateY(26px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-title { font-weight: 600; font-size: 24px; text-align: center; margin-bottom: 12px; }
.modal-btns { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.modal-btns .btn { font-size: 17px; padding: 11px 26px; }

/* 翻牌盲选 */
.card-pick-row {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; padding: 18px 6px 26px; perspective: 1400px; flex-wrap: wrap;
}
.pick-card {
  width: 116px; height: 163px;
  transform: rotate(var(--r, 0deg));
  transition: transform .32s cubic-bezier(.3,1.4,.5,1), opacity .32s;
  cursor: pointer;
}
.pick-card:hover { transform: rotate(var(--r, 0deg)) translateY(-10px) scale(1.06); }
.pick-card.picked { cursor: pointer; }
.pick-card.dim { opacity: .22; transform: rotate(var(--r, 0deg)) translateY(12px) scale(.85); pointer-events: none; }
.pick-card-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.3,1.2,.4,1);
}
.pick-card-side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pick-card-side img {
  width: 100%; height: 100%; border-radius: 15px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.pick-back { transform: rotateY(180deg); }

/* 单卡展示（保留） */
.card-flip { perspective: 1200px; width: 320px; height: 448px; margin: 0 auto; }
.card-flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: flipin .65s cubic-bezier(.3,1.3,.5,1) forwards;
}
@keyframes flipin { from { transform: rotateY(180deg) scale(.6); } to { transform: rotateY(0deg) scale(1); } }
.card-flip img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden;
  border-radius: 20px; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.card-flip .card-back { transform: rotateY(180deg); }

/* 地契 */
.deed-wrap { display: flex; gap: 20px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.deed-wrap img {
  width: 260px; border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  animation: deedin .4s cubic-bezier(.2,1.5,.5,1);
}
@keyframes deedin { from { transform: rotate(-3deg) scale(.88); opacity: 0; } to { transform: none; opacity: 1; } }
.deed-info { max-width: 300px; }

/* 盖房面板 / 地产清单 */
.build-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-height: 52vh; overflow: auto; }
.build-group {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px; padding: 11px 14px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.85);
}
.build-group .ghead { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.gswatch { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.15); }
.build-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }
.build-row .tname { font-weight: 600; font-size: 14px; }
.house-dots { display: flex; gap: 3px; align-items: center; }
.house-dots .hd {
  width: 15px; height: 15px; border-radius: 4px;
  background: rgba(0,0,0,.08);
  transition: background .2s, transform .2s;
}
.house-dots .hd.filled { background: #30d158; transform: scale(1.06); }
.build-ops { display: flex; gap: 6px; align-items: center; }
.mini-btn {
  width: 34px; height: 34px; font-size: 19px; font-weight: 600; border-radius: 999px;
  background: rgba(255,255,255,.85); color: var(--ink);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .14s, box-shadow .14s;
}
.mini-btn:hover:not(:disabled) { transform: translateY(-1px) scale(1.05); }
.mini-btn:active:not(:disabled) { transform: scale(.92); }
.mini-btn:disabled { opacity: .35; pointer-events: none; }
.sell-btn { font-size: 13px; font-weight: 600; padding: 6px 12px; }

/* 遥控骰子 / 距离 / 目标选择 */
.pick-grid { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; max-width: 480px; }
.pick-grid .pk {
  min-width: 62px; padding: 10px 14px; font-size: 19px; font-weight: 600;
  border-radius: 999px;
  background: rgba(255,255,255,.85); color: var(--ink);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .14s cubic-bezier(.3,1.5,.5,1), box-shadow .14s;
}
.pick-grid .pk:hover { transform: translateY(-2px) scale(1.05); }
.pick-grid .pk:active { transform: scale(.94); }
.pick-grid .pk.p-red { background: linear-gradient(#ffd60a, #ff9f0a); color: #4a2c00; }
.target-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.target-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 18px; border-radius: 18px;
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.9);
  cursor: pointer;
  transition: transform .16s cubic-bezier(.3,1.5,.5,1), box-shadow .16s;
}
.target-card:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.target-card img { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.target-card .tname { font-weight: 600; font-size: 14px; }
.target-card .tmoney { font-size: 12px; font-weight: 500; color: #b45309; }

/* 结算 */
.win-head { text-align: center; }
.win-head .trophy {
  font-size: 82px; animation: bounce 1.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.2));
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.win-name { font-weight: 600; font-size: 32px; margin: 6px 0; }
.rank-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rank-row {
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  background: rgba(255,255,255,.62);
  border-radius: 14px; padding: 9px 15px;
  box-shadow: var(--shadow-1);
  animation: slidein .3s ease-out;
}
.rank-row img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.rank-row .rk { font-weight: 700; width: 30px; }
.rank-row .rm { margin-left: auto; color: #b45309; }

/* 规则 */
.rules-body { max-width: 520px; font-size: 14px; line-height: 1.75; font-weight: 400; color: var(--ink-soft); }
.rules-body h4 { color: var(--ink); font-size: 16px; font-weight: 600; margin: 13px 0 4px; }

/* 提示 */
#toast-root {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.toast {
  background: rgba(24,24,28,.78);
  backdrop-filter: blur(16px) saturate(160%);
  color: #ffd60a; font-weight: 600; font-size: 16px;
  border-radius: 999px; padding: 10px 24px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  animation: toastin .3s cubic-bezier(.2,1.5,.4,1);
  max-width: 86vw; text-align: center;
}
@keyframes toastin {
  from { transform: translateY(-20px) scale(.8); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.toast.fade { transition: opacity .3s, transform .3s; opacity: 0; transform: translateY(-8px) scale(.92); }

/* 响应式 */
@media (max-width: 900px) {
  #players { width: 172px; }
  #log { width: 172px; }
  .pcard img.avatar { width: 36px; height: 36px; }
  .pcard .pmoney { font-size: 11px; }
  .big-btn { font-size: 19px; padding: 11px 30px; }
  .setup-title { font-size: 38px; letter-spacing: 8px; }
}
