/* Black Beard – purple/gold panels (Ranking, History, Rules, Settings, Menu, Profile, Wallet,
   Daily Rewards, Notifications, Support, Add Coins, Confirm). Sizes are stage pixels (720 wide). */
.zp{position:relative;width:664px;height:760px;border:3px solid #f6d56a;border-radius:24px;overflow:hidden;color:#f7edf8;font-weight:500;
  background:linear-gradient(154deg,#44164e 0%,#330d40 41%,#1a0822 100%);box-shadow:0 0 0 2px rgba(90,30,10,.6),0 22px 60px rgba(8,0,11,.8),inset 0 2px 10px rgba(255,255,255,.05)}
.zp.tall{height:930px}
.zp.short{height:auto;min-height:0;max-height:930px;padding-bottom:34px}
.zp.short .zb{max-height:800px}
#modal.show .zp{animation:zpIn .32s cubic-bezier(.2,1.3,.4,1)}
@keyframes zpIn{from{transform:translateY(40px) scale(.96);opacity:0}}
.zp::before{content:"";position:absolute;left:0;right:0;top:0;height:180px;pointer-events:none;
  background:radial-gradient(70% 100% at 50% 0,rgba(190,90,220,.22),transparent 70%)}
.zp .zx{position:absolute;right:14px;top:12px;width:62px;height:62px;z-index:5;transition:transform .15s}
.zp .zx:active{transform:scale(.9)}
.zp .zx img{width:100%;height:100%}
.zp .zh{position:relative;margin:30px 80px 18px;min-height:46px;display:flex;align-items:center;justify-content:center;
  font-size:28px;font-weight:700;color:#fff;letter-spacing:.2px}
.zp.tall .zh{margin-top:74px;margin-bottom:10px}
.zp .zb{position:absolute;left:0;right:0;top:94px;bottom:0;padding:0 40px 34px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#956d95 transparent}
.zp.tall .zb{top:130px}
.zp.short .zb{position:relative;top:0;padding-bottom:0}
.zp .zb::-webkit-scrollbar{width:5px}.zp .zb::-webkit-scrollbar-thumb{background:#916a96;border-radius:5px}
.zp .muted{color:#cbbad4;font-size:15px;line-height:1.45}
.zp .gold{color:#ffc020}
.zp .empty{text-align:center;color:#b9a1be;padding:60px 0;font-size:18px}
.zp .loading{text-align:center;color:#cbbad4;padding:70px 0;font-size:17px}
.zp .loading i{display:inline-block;width:10px;height:10px;margin:0 4px;border-radius:50%;background:#f6d56a;animation:zpDot 1s infinite}
.zp .loading i:nth-child(2){animation-delay:.15s}.zp .loading i:nth-child(3){animation-delay:.3s}
@keyframes zpDot{50%{opacity:.25;transform:scale(.6)}}

/* ranking */
.zrank{margin:0;padding:0;list-style:none}
.zrank li{display:grid;grid-template-columns:34px 44px minmax(0,1fr) 120px;align-items:center;column-gap:14px;height:65px;
  border-bottom:1px solid rgba(219,176,139,.13);font-size:19px}
.zrank li.me{background:linear-gradient(90deg,rgba(255,192,32,.16),rgba(255,192,32,.04));border-radius:10px;border-bottom-color:transparent}
.zrank .n{font-size:15px;font-weight:700;color:#c6b5cc;padding-left:4px}
.zrank .av{width:44px;height:44px;border-radius:50%;position:relative;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:700;overflow:hidden}
.zrank .av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.zrank .av span{position:relative}
.zrank .nm{font-weight:700;color:#f3e5f8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zrank .sc{text-align:right;color:#ffc020;font-weight:700;padding-right:6px;font-variant-numeric:tabular-nums}

/* buttons, tabs, cards */
.zbtn{border:2px solid #e7b758;background:linear-gradient(180deg,#712f72,#331142);border-radius:12px;padding:0 24px;height:56px;min-width:130px;
  color:#fff3db;font:700 18px GPop,Arial,sans-serif;cursor:pointer;transition:transform .12s,filter .12s}
.zbtn:active{transform:scale(.95)}
.zbtn.pri{background:linear-gradient(180deg,#ffb72a,#d66e0a);color:#2a1020;border-color:#ffe681;box-shadow:0 4px 14px rgba(255,150,20,.35)}
.zbtn.sec{background:linear-gradient(180deg,#4b3a7c,#20294e)}
.zbtn[disabled]{opacity:.5;pointer-events:none}
.zrow{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:24px}
.ztabs{display:flex;gap:10px;margin:0 0 18px}
.ztab{border:2px solid #e7b758;background:linear-gradient(180deg,#712f72,#331142);border-radius:10px;height:48px;padding:0 20px;color:#fff3db;font:700 16px GPop,Arial,sans-serif}
.ztab.on{background:linear-gradient(180deg,#ffb72a,#d66e0a);color:#271127;border-color:#ffe681}
.zcard{border:1px solid #a86d8a;border-radius:16px;background:linear-gradient(150deg,rgba(92,33,105,.55),rgba(30,7,42,.55));padding:20px 22px;margin-bottom:16px}
.zcard h3{margin:0 0 12px;font-size:19px;color:#ffe3a0;font-weight:700}

/* history table */
.ztable{width:100%;border-collapse:collapse;table-layout:fixed}
.ztable th{color:#f8d98e;font-size:14px;font-weight:700;text-align:left;padding:0 8px 10px}
.ztable td{padding:10px 8px;border-top:1px solid rgba(219,176,139,.13);font-size:17px;vertical-align:middle;height:64px}
.ztable th:last-child,.ztable td:last-child{text-align:right}
.ztable .rid{display:block;font-size:16px;color:#f3e5f8}
.ztable .tm{display:block;font-size:12px;color:#a998b2;margin-top:2px}
.ztable .res{display:flex;align-items:center;gap:6px}
.ztable .res img{width:44px;height:44px;object-fit:contain}
.ztable .res b{font-size:13px;color:#7fd8ff;background:rgba(80,160,255,.15);border:1px solid rgba(120,190,255,.5);border-radius:6px;padding:2px 6px}
.ztable .res em{font-style:normal;font-size:14px;color:#ffc020}
.ztable .win{color:#ffd14f;font-weight:700}
.ztable .zero{color:#9d88a8}

/* settings */
.ztog{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 4px;border-bottom:1px solid rgba(219,176,139,.13);font-size:19px;font-weight:700}
.ztog small{display:block;font-size:14px;color:#c8adc9;margin-top:4px;font-weight:500}
.ztog .sw{width:84px;height:48px;flex:none}
.ztog .sw img{width:100%;height:100%}

/* menu */
.zmenu{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.zmenu button{position:relative;height:110px;border-radius:16px;background:linear-gradient(160deg,#54175e,#2b0c37);border:1px solid #bd8d62;
  color:#faf0fe;font:700 18px GPop,Arial,sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;transition:transform .12s,border-color .12s}
.zmenu button:active{transform:scale(.96);border-color:#ffe681}
.zmenu img{width:56px;height:56px;object-fit:contain}
.zmenu svg{width:46px;height:46px;margin:5px 0}
.dot{position:absolute;top:10px;right:12px;width:14px;height:14px;border-radius:50%;background:#ff3b52;box-shadow:0 0 0 2px #2b0c37,0 0 10px #ff3b52}
.hb .dot{top:2px;right:2px}

/* profile / wallet */
.zprof{text-align:center}
.zprof .big{width:110px;height:110px;margin:0 auto 12px;border-radius:50%;border:3px solid #ffce55;position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;font-size:44px;color:#fff;font-weight:700}
.zprof .big img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.zprof .big span{position:relative}
.zprof .nm{font-size:24px;color:#fff;margin-bottom:20px}
.zdet{display:flex;justify-content:space-between;align-items:center;padding:14px 2px;border-bottom:1px solid rgba(255,255,255,.08);font-size:17px}
.zdet:last-child{border:none}
.zdet span{color:#d9bbd8}
.zdet b{color:#ffc020;font-weight:700;font-variant-numeric:tabular-nums}
.zkpi{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}
.zkpi div{border:1px solid #bf8255;border-radius:14px;text-align:center;padding:16px 8px;background:linear-gradient(145deg,#4c174b,#260a32)}
.zkpi span{display:block;font-size:13px;color:#ddcbdc;letter-spacing:.5px}
.zkpi b{display:flex;align-items:center;justify-content:center;gap:8px;font-size:32px;color:#ffd15b;margin-top:6px;font-variant-numeric:tabular-nums}
.zkpi b img{width:30px;height:30px}
.zact .zdet b.neg{color:#c9b3d2}

/* rewards */
.zrew{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.zrew>div{position:relative;border:1px solid #ce9b52;border-radius:14px;background:linear-gradient(#571951,#2a0d34);padding:14px 6px 12px;text-align:center}
.zrew>div.d7{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:18px;padding:14px;text-align:left}
.zrew img{width:48px;height:48px;display:block;margin:0 auto 6px}
.zrew>.d7 img{width:70px;height:70px;margin:0}
.zrew b{display:block;font-size:20px;color:#ffcf61}
.zrew small{color:#d3bddd;font-size:13px}
.zrew>.done{opacity:.5}
.zrew>.done::after{content:"✓";position:absolute;right:8px;top:4px;color:#7cf08a;font-size:22px}
.zrew>.today{border:2px solid #ffe681;box-shadow:0 0 18px rgba(255,200,60,.45);animation:zpGlow 1.6s ease-in-out infinite}
@keyframes zpGlow{50%{box-shadow:0 0 30px rgba(255,200,60,.8)}}

/* notifications */
.znote{display:flex;align-items:center;gap:14px;padding:16px 4px;border-bottom:1px solid rgba(219,176,139,.13);font-size:17px}
.znote:last-child{border:none}
.znote .ic{width:40px;height:40px;flex:none;border-radius:50%;background:linear-gradient(135deg,#7a2c8a,#3a1050);border:1px solid #c99a5e;display:flex;align-items:center;justify-content:center}
.znote .ic svg{width:22px;height:22px}
.znote p{margin:0;flex:1;line-height:1.35}
.znote time{color:#a998b2;font-size:13px;white-space:nowrap}
.znote.new p{color:#fff}.znote.new .ic{box-shadow:0 0 0 2px #ffc020}

/* support / add coins */
.zlbl{display:block;font-size:14px;color:#d9bbd8;margin-bottom:6px}
.zin{display:block;width:100%;padding:14px 16px;margin:0 0 16px;background:#2b0d37;border:1px solid #c09369;border-radius:10px;color:#fff;font:500 17px GPop,Arial,sans-serif;user-select:text;-webkit-user-select:text}
textarea.zin{height:150px;resize:none}
select.zin{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,#f6d56a 50%),linear-gradient(135deg,#f6d56a 50%,transparent 50%);
  background-position:calc(100% - 22px) 22px,calc(100% - 15px) 22px;background-size:7px 7px;background-repeat:no-repeat}
.zpacks{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.zpacks button{height:118px;border-radius:16px;border:1px solid #bd8d62;background:linear-gradient(160deg,#54175e,#2b0c37);color:#ffd15b;
  font:700 26px GPop,Arial,sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.zpacks button img{width:40px;height:40px}
.zpacks button.on{border:2px solid #ffe681;background:linear-gradient(160deg,#7a2a6a,#3b1148);box-shadow:0 0 20px rgba(255,200,60,.45)}

/* rules inside the panel */
.zp .rules h2{margin:4px 0 14px;font-size:22px;color:#ffe3a0;font-weight:700;text-align:center}
.zp .rules p{margin:0 0 12px;font-size:16px;line-height:1.5;color:#eadcf0;text-align:center}
.zp .rules .pt .s div{font-size:13px}
.zp .rules .ui{font-size:15px}
.zp .zpager{position:absolute;left:30px;right:30px;bottom:24px;height:56px;display:flex;align-items:center;justify-content:space-between}
.zp .zpager .dots{display:flex;gap:10px}
.zp .zpager .dots i{width:11px;height:11px;border-radius:50%;background:#6c4a78}
.zp .zpager .dots i.on{background:#ffc020;box-shadow:0 0 8px #ffc020}
.zp.rulesP .zb{bottom:92px;padding-bottom:10px}

/* confirm */
.zconf{text-align:center;padding:4px 10px 0}
.zconf .q{width:84px;height:84px;margin:0 auto 14px;border-radius:50%;border:2px solid #f6d56a;display:flex;align-items:center;justify-content:center;font-size:48px;color:#ffd15b;background:radial-gradient(circle,#5a1d66,#2a0b36)}
.zconf h3{margin:0 0 10px;font-size:22px;color:#fff}
.zconf p{margin:0;font-size:16px;color:#d9c8e0;line-height:1.5}
#side{display:none!important}
