/* 经典牛牛独立牌桌：不依赖炸金花的 #table / #actions / #hand-area DOM。 */
#douniu { padding-bottom: 148px; min-height: 100vh; }
#douniu .dn-header { gap: 8px; }
.dn-header-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dn-back { width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 10px; font-size: 21px; line-height: 1; }
.dn-room-title { min-width: 0; }
.dn-room-title strong { display: block; color: var(--gold2); font-size: 14px; letter-spacing: .4px; }
.dn-room-title small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.dn-header-tools { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.dn-header-tools .sfx-btn, .dn-header-tools .music-btn { width: 44px; height: 44px; }
.dn-shell { width: 100%; max-width: 480px; margin: 0 auto; }
.dn-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 13px 14px 8px; }
.dn-stat { min-width: 0; padding: 10px 9px; border: 1px solid rgba(226,184,74,.18); border-radius: 13px; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)), var(--panel); }
.dn-stat span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; white-space: nowrap; }
.dn-stat b { display: block; overflow: hidden; color: var(--gold2); font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dn-stat--phase b { color: var(--green); font-size: 13px; }
.dn-countdown { color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.dn-countdown.is-urgent { color: #ff9d6f; }
.dn-progress { display: flex; gap: 6px; padding: 3px 14px 12px; }
.dn-progress i { flex: 1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.13); }
.dn-progress i.is-done, .dn-progress i.is-current { background: linear-gradient(90deg, #b8860b, var(--gold2)); box-shadow: 0 0 8px rgba(226,184,74,.38); }
.dn-table { position: relative; margin: 0 14px 13px; padding: 17px 12px 15px; border: 1px solid rgba(226,184,74,.25); border-radius: 22px; background: radial-gradient(120% 100% at 50% 0%, rgba(35,137,70,.86), rgba(11,65,28,.96) 70%), #0e4a1d; box-shadow: inset 0 0 40px rgba(0,0,0,.34), 0 12px 28px rgba(0,0,0,.25); }
.dn-table::before { content: ''; position: absolute; inset: 9px; border: 1px dashed rgba(255,255,255,.11); border-radius: 16px; pointer-events: none; }
.dn-table-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dn-table-title { color: #d9ecd3; font-size: 12px; letter-spacing: .7px; }
.dn-banker-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid rgba(242,214,117,.55); border-radius: 999px; color: var(--gold2); background: rgba(41,27,5,.5); font-size: 11px; font-weight: 700; white-space: nowrap; }
.dn-banker-pill::before { content: '庄'; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; color: #4c3308; background: var(--gold2); font-size: 10px; }
.dn-banker-pill.is-empty { color: var(--muted); border-color: rgba(255,255,255,.2); background: rgba(0,0,0,.18); }
.dn-banker-pill.is-empty::before { content: '·'; color: var(--muted); background: rgba(255,255,255,.12); }
.dn-player-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dn-player { min-width: 0; padding: 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(5,16,8,.55); box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.dn-player.is-me { border-color: rgba(242,214,117,.66); box-shadow: 0 0 0 1px rgba(226,184,74,.18), 0 5px 15px rgba(0,0,0,.25); }
.dn-player.is-banker { background: linear-gradient(180deg, rgba(117,77,12,.33), rgba(5,16,8,.55)); }
.dn-player-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dn-avatar { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; flex: none; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #2fb3a0, #1e7a68); font-size: 12px; font-weight: 800; }
.dn-player-name { overflow: hidden; flex: 1; color: var(--text); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dn-player-name em { color: var(--gold2); font-size: 10px; font-style: normal; }
.dn-player-status { min-height: 18px; margin-top: 7px; color: #b7d3b0; font-size: 10px; line-height: 1.35; }
.dn-player-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 10px; }
.dn-multiplier { color: var(--gold2); font-weight: 800; font-variant-numeric: tabular-nums; }
.dn-net--plus { color: var(--green); }
.dn-net--minus { color: #ef8d84; }
.dn-net--zero { color: var(--muted); }
.dn-player-cards { display: flex; gap: 2px; margin-top: 6px; min-height: 26px; }
.dn-mini-card { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 28px; border-radius: 4px; background: linear-gradient(160deg, #fff, #e7ece5); color: #1b1d1b; box-shadow: 0 2px 5px rgba(0,0,0,.3); font-size: 8px; font-weight: 800; line-height: 1; }
.dn-mini-card.r { color: #c0392b; }
.dn-mini-card.back { color: rgba(255,255,255,.4); background: repeating-linear-gradient(45deg, #8f2f28 0 5px, #1c3f63 5px 10px); font-size: 12px; }
.dn-hand-panel { margin: 0 14px 12px; padding: 14px 12px 15px; border: 1px solid rgba(226,184,74,.22); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)), var(--panel); }
.dn-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.dn-section-title strong { color: var(--gold2); font-size: 14px; }
.dn-section-title span { color: var(--muted); font-size: 11px; }
.dn-cards { display: flex; justify-content: center; gap: 7px; min-height: 83px; }
.dn-card { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 55px; height: 78px; border-radius: 9px; background: linear-gradient(160deg, #fff 0%, #f5f7f1 65%, #e9ede4 100%); box-shadow: 0 6px 13px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.08); color: #1a1a1a; font-size: 17px; font-weight: 800; line-height: 1; }
.dn-card.r { color: #c0392b; }
.dn-card .suit { margin-top: 7px; font-size: 24px; }
.dn-card.back { color: rgba(255,255,255,.45); background: repeating-linear-gradient(45deg, #8f2f28 0 7px, #1c3f63 7px 14px); font-size: 22px; }
.dn-hand-summary { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.dn-hand-type { padding: 6px 11px; border: 1px solid rgba(242,214,117,.55); border-radius: 999px; color: var(--gold2); background: rgba(226,184,74,.11); font-size: 12px; font-weight: 800; }
.dn-hand-mult { color: var(--muted); font-size: 11px; }
.dn-groups { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; margin-top: 11px; }
.dn-group { padding: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(0,0,0,.15); text-align: center; }
.dn-group-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.dn-group-cards { display: flex; justify-content: center; gap: 3px; min-height: 29px; }
.dn-group .dn-mini-card { width: 23px; height: 30px; }
.dn-group-note { margin-top: 9px; color: var(--muted); font-size: 10px; text-align: center; }
.dn-notice { margin: 0 14px 12px; padding: 9px 11px; border: 1px solid rgba(226,184,74,.35); border-radius: 11px; color: var(--gold2); background: rgba(226,184,74,.08); font-size: 11px; line-height: 1.5; }
.dn-notice:empty { display: none; }
.dn-notice.is-error { border-color: rgba(239,111,99,.52); color: #ffb3a7; background: rgba(192,57,47,.13); }
.dn-settlement { margin: 0 14px 12px; padding: 13px 12px; border: 1px solid rgba(226,184,74,.42); border-radius: 17px; background: linear-gradient(180deg, rgba(226,184,74,.12), rgba(226,184,74,.035)), var(--panel2); }
.dn-settlement h3 { margin-bottom: 9px; color: var(--gold2); font-size: 15px; text-align: center; }
.dn-settlement-row { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 11px; }
.dn-settlement-row:last-child { border-bottom: 0; }
.dn-settlement-row strong { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
.dn-settlement-row .dn-delta { font-weight: 800; font-variant-numeric: tabular-nums; }
.dn-loan-note { margin-top: 9px; color: #ffcf86; font-size: 11px; line-height: 1.45; }
.dn-actions { position: fixed; bottom: 0; left: 50%; z-index: 20; width: 100%; max-width: 480px; padding: 11px 14px calc(13px + env(safe-area-inset-bottom)); transform: translateX(-50%); border-top: 1px solid rgba(226,184,74,.18); background: linear-gradient(180deg, rgba(8,13,9,.2), rgba(6,11,7,.97) 48%); }
.dn-actions-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 9px; }
.dn-balance { color: var(--muted); font-size: 11px; }
.dn-balance b { margin-left: 4px; color: var(--gold2); font-size: 13px; font-variant-numeric: tabular-nums; }
.dn-chat-button { min-height: 44px; padding: 8px 13px; }
.dn-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.dn-action-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dn-action-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dn-action-grid .btn { min-width: 0; min-height: 44px; padding: 11px 5px; font-size: 12px; white-space: nowrap; }
.dn-action-grid > .dn-waiting, .dn-action-grid > .dn-round-copy { grid-column: 1 / -1; }
.dn-waiting { color: var(--muted); font-size: 12px; text-align: center; padding: 10px 0 2px; }
.dn-waiting strong { color: var(--gold2); }
.dn-round-copy { color: var(--muted); font-size: 11px; text-align: center; line-height: 1.45; }
@media (max-width: 375px) {
  .dn-summary { gap: 6px; padding-left: 11px; padding-right: 11px; }
  .dn-stat { padding-left: 7px; padding-right: 7px; }
  .dn-stat b { font-size: 13px; }
  .dn-table, .dn-hand-panel, .dn-notice, .dn-settlement { margin-left: 11px; margin-right: 11px; }
  .dn-card { width: 48px; height: 70px; }
  .dn-card .suit { font-size: 21px; }
  .dn-action-grid { gap: 5px; }
  .dn-action-grid .btn { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  #douniu *, #douniu *::before, #douniu *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
