/* 极道黑金主题（与 Tailwind 并用） */
:root { --gold: #d4af37; --gold2: #f6e27a; --panel: #111014; }
html { background: #07070a; }
body { background: radial-gradient(1200px 600px at 50% -10%, rgba(212,175,55,.10), transparent 60%), #07070a; color: #ece6d6;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
.gold-text { background: linear-gradient(90deg, #b8902c, #f6e27a 50%, #b8902c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card { background: linear-gradient(180deg, rgba(23,20,12,.92), rgba(12,11,9,.92)); border: 1px solid rgba(212,175,55,.22); border-radius: 18px; padding: 20px; }
.card-lock { position: relative; overflow: hidden; }
.card-lock .blur { filter: blur(6px); user-select: none; pointer-events: none; }
.btn-gold { background: linear-gradient(180deg, #f6e27a, #d4af37 60%, #a8841f); color: #000; font-weight: 800; padding: 11px 18px; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(212,175,55,.25); transition: transform .1s; }
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(212,175,55,.55); color: #f6e27a; padding: 10px 16px; border-radius: 12px; font-weight: 600; background: rgba(0,0,0,.3); }
.inp { background: #0d0c0a; border: 1px solid #3a321a; color: #ece6d6; padding: 10px 12px; border-radius: 10px; outline: none; min-width: 0; }
.inp:focus { border-color: #d4af37; }
.lbl { font-size: 12px; color: #9a927e; letter-spacing: .1em; }
.pillar { background: #16130b; border: 1px solid #3a321a; border-radius: 14px; text-align: center; padding: 10px 4px; }
.pillar b { display: block; font-size: 28px; color: #f6e27a; letter-spacing: 4px; line-height: 1.3; }
.knife { border-left: 3px solid #d4af37; padding-left: 14px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.bars > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.bars i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #f6e27a, #8a6d1d); }
.bars small { font-size: 10px; color: #9a927e; margin-top: 4px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; border: 1px solid #3a321a; font-size: 12px; }
.bg-panel { background: #111014; }
.text-gold { color: #d4af37; } .text-gold2 { color: #f6e27a; } .border-gold { border-color: #d4af37; } .bg-gold { background: #d4af37; }

/* —— 离线兜底：Tailwind CDN 不可达时，关键结构仍可用 —— */
.hidden { display: none !important; }
#cashier:not(.hidden) { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: 12px; }
#cashier > div { width: 100%; max-width: 32rem; max-height: 92vh; overflow-y: auto; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 60; padding: 12px 20px; border-radius: 12px; }

/* —— 30 站通用组件 —— */
.chip { display: inline-flex; align-items: center; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { border: 1px solid #3a321a; border-radius: 99px; padding: 6px 12px; font-size: 13px; color: #c9c1ad; transition: all .15s; }
.chip input:checked + span { background: rgba(212,175,55,.18); border-color: #d4af37; color: #f6e27a; }
.chip input:focus-visible + span { outline: 2px solid #d4af37; outline-offset: 2px; }
.tcard { background: linear-gradient(180deg, #1b170c, #0c0b08); border: 1px solid rgba(212,175,55,.45); border-radius: 14px; padding: 10px 6px; text-align: center; min-height: 150px; }
.ytable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ytable th { color: #d4af37; font-weight: 600; text-align: left; padding: 7px 8px; border-bottom: 1px solid #3a321a; white-space: nowrap; }
.ytable td { padding: 7px 8px; border-bottom: 1px solid #1f1b10; color: #ddd5c0; vertical-align: top; min-width: 56px; }
.vipcard { background: radial-gradient(600px 200px at 0% 0%, rgba(246,226,122,.12), transparent 60%), linear-gradient(135deg, #17130a, #050505 70%); border-color: rgba(212,175,55,.55); }
#ymodal.hidden { display: none !important; }
#ymodal:not(.hidden) { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; }
input[type=range] { accent-color: #d4af37; }
textarea.inp { resize: vertical; }
