/* style-gamble.css — 賭坊 (request 39), the daily battle 元寶 line and the new coin lines */
.pp-right .pp-gbbtn { flex: 0 0 auto; min-width: 56px; gap: 4px; padding: 0 10px 0 6px; position: relative; display: inline-flex; align-items: center; }
.pp-gbbtn .gb-ico { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(40,8,4,.8)); pointer-events: none; }
.pp-gbbtn .gb-bt { white-space: nowrap; }
.gb-dot { position: absolute; right: -4px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: #e0302a; border: 2px solid var(--gold-hi); box-shadow: 0 0 8px rgba(255,120,60,.9); }
@media (max-height: 520px) {
  .pp-gbbtn .gb-bt { display: none; }
  .pp-right .pp-gbbtn { min-width: 44px; width: 44px; padding: 0; justify-content: center; }
  .pp-gbbtn .gb-ico { width: 34px; height: 34px; }
}

.gb-panel { position: relative; width: min(96vw, 880px); max-height: 94vh; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 2px 8px 8px; color: var(--cream); font-family: var(--font); animation: eq-pop .22s cubic-bezier(.3,1.5,.5,1) both; }
.gb-panel.shake { animation: gb-shake .35s ease-out; }
@keyframes gb-shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } 100% { transform: none; } }
.gb-strip { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gb-oddsT { font-size: 15px; font-weight: 900; color: #f3dcae; }
.gb-outs { display: flex; gap: 8px; }
.gb-out { --oc: #f0d48a; position: relative; width: 78px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(rgba(70,26,20,.92), rgba(40,14,10,.95)); border: 3px solid color-mix(in srgb, var(--oc) 70%, #3a1a12); transition: transform .08s, box-shadow .08s; }
.gb-out b { font-size: 20px; font-weight: 900; color: var(--oc); text-shadow: var(--outline); line-height: 1; }
.gb-out small { font-size: 12px; font-weight: 800; color: #e9d3a8; }
.gb-out.up { --oc: #9be86a; } .gb-out.big { --oc: #ffd34a; } .gb-out.down { --oc: #ff9c6a; } .gb-out.zero { --oc: #ff5a4a; }
.gb-out.spin { transform: scale(1.1); box-shadow: 0 0 0 3px #fff4d8, 0 0 18px var(--oc); }
.gb-out.hit { transform: scale(1.12); box-shadow: 0 0 0 3px var(--oc), 0 0 22px 4px var(--oc); animation: gb-hit .5s ease-out; }
@keyframes gb-hit { 0% { transform: scale(1.4); } 100% { transform: scale(1.12); } }

.gb-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.gb-body::-webkit-scrollbar { display: none; }
.gb-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px 10px; border-radius: 14px; background: linear-gradient(rgba(118,50,42,.85), rgba(66,28,24,.92)); border: 2px solid var(--gold-dark, #8a5a2a); box-shadow: 0 3px 0 rgba(0,0,0,.45); animation: lq-pop .26s both; }
.gb-card:nth-child(2) { animation-delay: .05s; } .gb-card:nth-child(3) { animation-delay: .1s; }
.gb-card.on { border-color: #ffd86a; box-shadow: 0 0 0 2px #c8261c, 0 0 14px rgba(255,180,60,.55); }
.gb-ct { font-size: 19px; font-weight: 900; color: var(--gold-hi); }
.gb-ch { font-size: 13px; font-weight: 700; color: #fbe9c4; text-align: center; line-height: 1.3; text-shadow: 0 1px 0 #2a0805; min-height: 34px; }
.gb-stake { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; max-width: 100%; }
.gb-step { width: 44px; height: 44px; padding: 0; font-size: 15px; }
.gb-bet { min-width: 64px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 20px; background: rgba(0,0,0,.5); border: 2px solid var(--gold-dark, #8a5a2a); font-size: 20px; color: var(--gold-hi); }
.gb-bet img, .gb-price img { width: 22px; height: 22px; object-fit: contain; }
.gb-kico { font-size: 18px; line-height: 22px; width: 22px; text-align: center; color: #ffb27a; }
.gb-card.dim .gb-go { filter: grayscale(.7) brightness(.8); }
.gb-row { display: flex; gap: 8px; align-items: center; }
.gb-max { min-width: 64px; height: 46px; font-size: 15px; }
.gb-go { min-width: 120px; min-height: 48px; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.gb-go:disabled { filter: grayscale(.7) brightness(.75); cursor: default; }
.gb-go.poor { filter: grayscale(.6) brightness(.8); }
.gb-price { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; color: var(--gold-hi); text-shadow: var(--outline); }
.gb-left { font-size: 12px; font-weight: 800; color: #e9d3a8; text-align: center; line-height: 1.25; margin-top: auto; }
.gb-left.none { color: #ff9a80; }
.gb-kicon { font-size: 40px; line-height: 1; color: #ffd86a; text-shadow: var(--outline), 0 0 14px rgba(255,140,40,.7); }
.gb-card.on .gb-kicon { animation: eq-qpulse 1.2s ease-in-out infinite; }
.gb-gods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 6px; width: 100%; }
.gb-god { --qc: #ddd; display: flex; justify-content: space-between; align-items: center; padding: 1px 8px; border-radius: 8px; background: rgba(0,0,0,.45); border: 1px solid var(--qc); }
.gb-god b { font-size: 13px; color: var(--qc); font-weight: 900; text-shadow: 0 1px 0 #1a0604; }
.gb-god small { font-size: 13px; font-weight: 900; color: #fff3d6; }
.gb-reveal { --qc: #ddd; position: relative; display: flex; align-items: center; gap: 6px; width: 100%; box-sizing: border-box; min-height: 48px; padding: 3px 8px; border-radius: 10px; background: rgba(0,0,0,.5); border: 3px solid var(--qc); box-shadow: 0 0 12px var(--qc); }
.gb-reveal img { width: 40px; height: 40px; object-fit: contain; }
.gb-reveal b { flex: 1; font-size: 14px; font-weight: 900; color: var(--qc); text-shadow: var(--outline); line-height: 1.15; }
.gb-reveal small { font-size: 12px; font-weight: 900; color: var(--qc); }
.gb-reveal.flick { justify-content: center; font-size: 28px; font-weight: 900; color: var(--qc); text-shadow: var(--outline); transition: border-color .05s, box-shadow .05s; }
.gb-reveal.pop { animation: eq-glow .7s ease-out; }
.gb-msg { min-height: 22px; text-align: center; font-size: 17px; font-weight: 900; color: #ffd98a; text-shadow: var(--outline); }
.gb-msg.win { color: #ffe066; animation: lq-pop .3s both; }
.gb-msg.lose { color: #ff7a66; animation: gb-shake .35s ease-out; }
.gb-msg.bad { color: #ff9a80; }

@media (max-width: 760px), (max-height: 520px) {
  .gb-panel { width: 98vw; max-height: 96vh; gap: 3px; padding: 0 6px 4px; border-width: 7px; }
  .gb-out { width: 62px; height: 38px; border-width: 2px; }
  .gb-out b { font-size: 16px; } .gb-out small { font-size: 11px; }
  .gb-oddsT { font-size: 13px; }
  .gb-card { gap: 3px; padding: 4px 5px 6px; }
  .gb-ct { font-size: 16px; }
  .gb-ch { font-size: 12px; min-height: 0; line-height: 1.2; }
  .gb-kicon { font-size: 26px; }
  .gb-go { min-height: 44px; min-width: 100px; font-size: 16px; }
  .gb-max { height: 44px; }
  .gb-bet { height: 36px; min-width: 46px; padding: 0 4px; font-size: 17px; }
  .gb-stake { gap: 3px; }
  .gb-gods { grid-template-columns: 1fr; }
  .gb-reveal { min-height: 40px; } .gb-reveal img { width: 30px; height: 30px; }
  .gb-msg { font-size: 15px; min-height: 18px; }
}

/* the new coin sources on the wave plate */
.gb-inc { color: #ffe9a8; }
.gb-inc.win { color: #9be86a; font-weight: 900; }
.gb-inc.lose { color: #ff8a70; font-weight: 900; }
/* 「今日已獲得元寶 X / 200」 */
.gb-goldday { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 6px; margin: 4px auto 0; padding: 3px 12px; border-radius: 14px; background: rgba(0,0,0,.35); max-width: 100%; box-sizing: border-box; }
.gb-goldday img { width: 22px; height: 22px; object-fit: contain; }
.gb-goldday b { font-size: 15px; font-weight: 900; color: #f3e3c0; }
.gb-goldday small { flex-basis: 100%; text-align: center; font-size: 12px; font-weight: 700; color: #d9c49a; text-shadow: 0 1px 0 #2a0805; }
.gb-goldday.full { background: linear-gradient(180deg, rgba(120,70,0,.75), rgba(60,30,0,.75)); border: 2px solid #ffd34a; box-shadow: 0 0 12px rgba(255,200,60,.6); }
.gb-goldday.full b, .gb-goldday.full small { color: #ffd34a; }

/* lobby row: the drawn icons (request 39 item 1) */
.sc-micon.pic { width: max(34px, calc(44px*var(--u))); height: max(34px, calc(44px*var(--u))); }
.sc-micon .sc-mpic { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(30,6,3,.7)); pointer-events: none; }
