/* ============================================================
   奶酪金库 / 全服掉落 —— v4.3 全局经济表现层
   视觉语汇：地窖木箱 + 熔化奶酪的暖金，而非科幻蓝
   ============================================================ */

.cheese-vault {
  position: relative;
  margin: 16px 0 18px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 196, 84, .18), transparent 55%),
    radial-gradient(circle at 92% 100%, rgba(255, 138, 46, .14), transparent 58%),
    linear-gradient(155deg, #2a1f13 0%, #1d160e 55%, #17110b 100%);
  border: 1px solid rgba(232, 194, 106, .32);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 224, 160, .12);
  overflow: hidden;
}
.cheese-vault::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 32%, rgba(0,0,0,.5) 0 6px, transparent 7px),
    radial-gradient(circle at 74% 18%, rgba(0,0,0,.42) 0 9px, transparent 10px),
    radial-gradient(circle at 55% 82%, rgba(0,0,0,.38) 0 7px, transparent 8px);
  opacity: .5; pointer-events: none;
}

.cv-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.cv-title { font-size: 15px; font-weight: 800; color: #ffdf9c; letter-spacing: .4px; }
.cv-title i { margin-right: 7px; color: #ffc453; }
.cv-title small {
  display: inline-block; margin-left: 9px; font-size: 10.5px;
  font-weight: 600; color: #a98f62; letter-spacing: 1.3px;
}
.cv-live { font-size: 12px; color: #cdb489; display: flex; align-items: center; gap: 6px; }
.cv-live b { color: #ffd583; }

.cv-body {
  display: grid; grid-template-columns: minmax(240px, 1.15fr) minmax(260px, 1fr);
  gap: 16px; align-items: center; position: relative; z-index: 1;
}
.cv-main { min-width: 0; }
.cv-label { display: block; font-size: 11.5px; color: #a98f62; letter-spacing: 1.4px; }
.cv-amount {
  display: inline-block; font-size: clamp(30px, 5.4vw, 46px); line-height: 1.05;
  font-weight: 900; letter-spacing: -.5px;
  background: linear-gradient(180deg, #fff3cf 0%, #ffc453 48%, #e08a1e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 34px rgba(255, 180, 60, .28);
  font-variant-numeric: tabular-nums;
}
.cv-unit { font-size: 13px; font-weight: 800; color: #d5a758; margin-left: 6px; }
.cv-note { margin: 7px 0 0; font-size: 11.5px; line-height: 1.7; color: #b9a582; }
.cv-note b { color: #ffd07a; }

.cv-tiers { display: grid; gap: 7px; min-width: 0; }
.cv-tier {
  display: grid; grid-template-columns: 26px 1fr auto auto;
  align-items: center; gap: 9px;
  padding: 7px 11px; border-radius: 11px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(232, 194, 106, .16);
}
.cv-tier-ico { font-size: 17px; text-align: center; }
.cv-tier-name { font-size: 12.5px; font-weight: 700; color: #eadcc0; min-width: 0; }
.cv-tier-name small { display: block; font-size: 9.5px; color: #8d7a58; letter-spacing: 1px; font-weight: 600; }
.cv-tier-pool {
  font-size: 15px; font-weight: 800; color: #ffd583;
  font-variant-numeric: tabular-nums;
}
.cv-tier-take {
  font-size: 10px; color: #9a8560; padding: 2px 6px;
  border-radius: 6px; background: rgba(255, 196, 84, .08);
  white-space: nowrap;
}
.cv-grand { border-color: rgba(255, 173, 51, .45); background: rgba(120, 68, 8, .3); }
.cv-grand .cv-tier-pool { color: #ffca63; }
.cv-major { border-color: rgba(200, 160, 90, .3); }

/* 全服掉落进度 */
.cv-drop {
  margin-top: 13px; padding-top: 12px;
  border-top: 1px dashed rgba(232, 194, 106, .2);
  position: relative; z-index: 1;
}
.cv-drop-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: #e0cfa8; font-weight: 700;
}
.cv-drop-top small { font-weight: 500; color: #9a8560; margin-left: 6px; font-size: 10.5px; }
.cv-drop-top i { color: #ffc453; margin-right: 5px; }
.cv-drop-num { font-weight: 500; color: #b9a582; font-size: 11.5px; }
.cv-drop-num b { color: #7ee6a6; font-weight: 800; font-size: 13px; }
.cv-bar {
  margin: 8px 0 6px; height: 9px; border-radius: 99px; overflow: hidden;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(232, 194, 106, .14);
}
.cv-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #d98a24, #ffc453 55%, #ffe9b0);
  box-shadow: 0 0 14px rgba(255, 196, 84, .5);
  transition: width .5s cubic-bezier(.22, .9, .3, 1);
}
.cv-drop-foot {
  display: flex; justify-content: space-between; font-size: 11px; color: #8d7a58;
  font-variant-numeric: tabular-nums;
}
.cv-drop-foot b { color: #cdb489; }

/* 我的经济账 */
.cv-mine {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 12px; position: relative; z-index: 1;
}
.cv-mine > div {
  padding: 7px 10px; border-radius: 10px;
  background: rgba(0, 0, 0, .26); border: 1px solid rgba(232, 194, 106, .12);
}
.cv-mine span { display: block; font-size: 10.5px; color: #8d7a58; margin-bottom: 2px; }
.cv-mine b { font-size: 14px; color: #e6d5ae; font-variant-numeric: tabular-nums; }
.cv-mine b.win { color: #7ee6a6; }

/* 游戏内悬浮胶囊 */
.cv-pill {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 15px 9px 12px; border-radius: 99px;
  background: linear-gradient(150deg, rgba(42, 31, 19, .96), rgba(23, 17, 11, .96));
  border: 1px solid rgba(232, 194, 106, .34);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.cv-pill-ico { font-size: 19px; filter: drop-shadow(0 0 8px rgba(255, 196, 84, .5)); }
.cv-pill-txt { display: flex; flex-direction: column; line-height: 1.15; }
.cv-pill-txt small { font-size: 9.5px; color: #a98f62; letter-spacing: .8px; }
.cv-pill-txt b {
  font-size: 16px; font-weight: 800; color: #ffd583;
  font-variant-numeric: tabular-nums;
}
.cv-pill-bar {
  width: 46px; height: 5px; border-radius: 99px; overflow: hidden;
  background: rgba(0, 0, 0, .5);
}
.cv-pill-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #d98a24, #ffe9b0);
  transition: width .5s ease;
}

/* 中奖播报 */
.cv-toasts {
  position: fixed; left: 50%; top: 76px; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 9px;
  pointer-events: none; width: min(440px, calc(100vw - 28px));
}
.cv-toast {
  display: grid; grid-template-columns: 40px 1fr auto;
  align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: 15px;
  background: linear-gradient(150deg, rgba(52, 37, 18, .97), rgba(28, 20, 11, .97));
  border: 1px solid rgba(255, 196, 84, .45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .58), 0 0 26px rgba(255, 180, 60, .18);
  animation: cvIn .5s cubic-bezier(.2, 1.3, .4, 1);
}
.cv-toast.out { animation: cvOut .55s ease forwards; }
@keyframes cvIn { from { opacity: 0; transform: translateY(-22px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes cvOut { to { opacity: 0; transform: translateY(-16px) scale(.96); } }
.cv-t-ico { font-size: 27px; text-align: center; filter: drop-shadow(0 0 10px rgba(255, 196, 84, .6)); }
.cv-t-body { min-width: 0; }
.cv-t-body b { display: block; font-size: 13.5px; color: #ffe0a2; font-weight: 800; }
.cv-t-body small { font-size: 10px; color: #a98f62; letter-spacing: 1.3px; }
.cv-t-amt {
  font-size: 19px; font-weight: 900; color: #7ee6a6;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 0 16px rgba(126, 230, 166, .4);
}
.cv-toast-grand {
  border-color: rgba(255, 204, 90, .8);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 46px rgba(255, 190, 60, .42);
}
.cv-toast-grand .cv-t-amt { font-size: 23px; color: #ffd583; }
.cv-toast-drop { border-color: rgba(126, 230, 166, .4); }
.cv-toast-drop .cv-t-body b { color: #b9f3d0; }

/* 响应式 */
@media (max-width: 860px) {
  .cv-body { grid-template-columns: 1fr; gap: 13px; }
  .cv-mine { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cheese-vault { padding: 13px 13px 12px; border-radius: 15px; }
  .cv-pill { right: 10px; bottom: 10px; padding: 7px 12px 7px 10px; }
  .cv-pill-bar { display: none; }
  .cv-toasts { top: 66px; }
}
