@font-face{font-family:"GPop";src:url(fonts/Poppins-Bold.ttf) format("truetype");font-weight:700}
@font-face{font-family:"GPop";src:url(fonts/Poppins-Medium.ttf) format("truetype");font-weight:500}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
html,body{margin:0;height:100%;background:transparent;overflow:hidden;font-family:GPop,Arial,sans-serif;font-weight:700;color:#fff}
img{-webkit-user-drag:none;pointer-events:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:root{--gold1:#fff2bf;--gold2:#f4c95d;--gold3:#b9781f;--gold4:#6b3a0c;--cream:#fdf3d8;--ink:#4a2508;--ruby:#7a1f1c}

/* ---------------- stage (720 x 1000, scaled to the bottom sheet) ---------------- */
#stage{position:absolute;left:50%;bottom:0;width:720px;height:1000px;transform-origin:50% 100%;overflow:hidden;background:#1a0c04;opacity:0;transition:opacity .45s}
#stage.ready{opacity:1}
#bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#amb,#fx{position:absolute;inset:0;width:720px;height:1000px;pointer-events:none}
#fx{z-index:60}
#beams{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;opacity:.55}
#beams i{position:absolute;top:-80px;width:220px;height:900px;background:linear-gradient(180deg,rgba(255,230,160,.42),rgba(255,200,110,0) 85%);
  clip-path:polygon(44% 0,56% 0,100% 100%,0 100%);transform-origin:50% 0;filter:blur(6px)}
#beams i:nth-child(1){left:20px;animation:beamL 11s ease-in-out infinite}
#beams i:nth-child(2){right:20px;animation:beamR 13s ease-in-out infinite}
@keyframes beamL{0%,100%{transform:rotate(-24deg)}50%{transform:rotate(-6deg)}}
@keyframes beamR{0%,100%{transform:rotate(24deg)}50%{transform:rotate(6deg)}}

/* ---------------- header ---------------- */
.ib{position:absolute;width:60px;height:60px;z-index:20;transition:transform .12s}
.ib img{width:100%;height:100%;filter:drop-shadow(0 3px 4px rgba(0,0,0,.55))}
.ib:active{transform:scale(.9)}
#btnBack{left:14px;top:12px}
#btnRank{right:84px;top:12px}
#btnMenu{right:14px;top:12px}
#ribbon{position:absolute;left:50%;top:16px;transform:translateX(-50%);height:50px;min-width:360px;padding:0 34px;z-index:20;
  display:flex;align-items:center;justify-content:center;gap:12px;font-size:21px;color:#4a2306;letter-spacing:.3px;
  background:linear-gradient(180deg,#fff1b8,#f0c35a 45%,#c9892a 55%,#f6d77d);border:2px solid #7a440e;
  clip-path:polygon(4% 0,96% 0,100% 50%,96% 100%,4% 100%,0 50%);text-shadow:0 1px 0 rgba(255,255,255,.55)}
#ribbon .sep{width:2px;height:22px;background:#8b5216;opacity:.6}
#ribbon b{font-weight:700}
#ping{position:absolute;left:84px;top:22px;z-index:20;display:flex;align-items:flex-end;gap:2px;font-size:13px;color:#7dfc6a}
#ping i{display:block;width:4px;background:#7dfc6a;border-radius:1px}
#ping i:nth-child(1){height:6px}#ping i:nth-child(2){height:10px}#ping i:nth-child(3){height:14px}
#ping span{margin-left:4px;text-shadow:0 1px 2px #000}
#ping.slow,#ping.slow i{color:#ffcf4a;background:#ffcf4a}#ping.slow span{background:none}
#ping.bad,#ping.bad i{color:#ff6b5a;background:#ff6b5a}#ping.bad span{background:none}

#menuDrop{position:absolute;right:14px;top:80px;z-index:40;width:236px;padding:10px;border-radius:18px;
  background:linear-gradient(180deg,#5a2a10,#2c1206);border:2px solid #d9a54a;box-shadow:0 14px 30px rgba(0,0,0,.6);
  transform-origin:90% 0;transform:scale(.6);opacity:0;pointer-events:none;transition:transform .2s cubic-bezier(.2,1.4,.4,1),opacity .15s}
#menuDrop.open{transform:none;opacity:1;pointer-events:auto}
#menuDrop button{display:flex;align-items:center;gap:12px;width:100%;height:58px;padding:0 10px;border-radius:12px;font-size:19px;color:#ffe9b3;text-align:left}
#menuDrop button:active{background:rgba(255,210,120,.12)}
#menuDrop img{width:40px;height:40px}
#menuDrop .tg{margin-left:auto;width:48px;height:26px;border-radius:14px;background:#5d4434;position:relative;transition:background .2s}
#menuDrop .tg::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#d8c7b4;transition:transform .2s}
#menuDrop .on .tg{background:#3fae4a}#menuDrop .on .tg::after{transform:translateX(22px);background:#fff}

#btnPlayers{left:16px;top:96px;width:74px;height:74px}
#btnPlayers span{position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);min-width:44px;padding:1px 8px;border-radius:10px;font-size:14px;
  background:linear-gradient(#7a2d18,#3d1206);border:1px solid #e3b158;color:#ffe19a;text-align:center}

#clock{position:absolute;right:16px;top:96px;width:84px;height:84px;z-index:20;border-radius:50%;
  background:radial-gradient(circle at 50% 38%,#fff8d8,#f2cf74 45%,#b7791e 80%,#6d3d0b);box-shadow:0 4px 10px rgba(0,0,0,.6),inset 0 -4px 8px rgba(80,40,0,.5)}
#clock svg{position:absolute;inset:4px;transform:rotate(-90deg)}
#clock .trk{fill:none;stroke:rgba(90,45,5,.25);stroke-width:7}
#clock .arc{fill:none;stroke:#5a2a06;stroke-width:7;stroke-linecap:round;stroke-dasharray:276.5;stroke-dashoffset:0;transition:stroke-dashoffset .25s linear}
#clock b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:36px;color:#5a2a06;text-shadow:0 1px 0 #fff6cf}
#clockBall{position:absolute;left:18px;top:18px;width:48px;height:48px;opacity:0;transition:opacity .2s}
#stage.phase-drawing #clockBall,#stage.phase-result #clockBall{opacity:1;animation:spin .7s linear infinite}
#stage.phase-drawing #clock b,#stage.phase-result #clock b{opacity:0}
#clock.hot{animation:hot .5s ease-in-out infinite alternate}
#clock.hot b{color:#b3110a}
#clock.hot .arc{stroke:#c0160d}
@keyframes hot{to{transform:scale(1.1);box-shadow:0 0 22px rgba(255,80,40,.9),0 4px 10px rgba(0,0,0,.6)}}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------------- wheel ---------------- */
#wheel{position:absolute;inset:0;pointer-events:none}
#frame{position:absolute;left:0;top:0;width:720px;height:1000px}
#innerGlow{transition:opacity .3s}
#stage.phase-betting #innerGlow{animation:glowPulse 2.4s ease-in-out infinite}
@keyframes glowPulse{50%{opacity:.55}}
#ring{position:absolute;inset:0}
.rf{position:absolute;width:70px;height:70px;margin:-35px 0 0 -35px;border-radius:50%;transition:transform .12s,filter .12s}
.rf img{width:100%;height:100%}
.rf::after{content:"";position:absolute;inset:-14px;border-radius:50%;background:radial-gradient(circle,rgba(255,240,170,.95) 0,rgba(255,200,80,.6) 38%,rgba(255,170,40,0) 70%);opacity:0;mix-blend-mode:screen;transition:opacity .12s}
.rf.l1{transform:scale(1.18);z-index:3}.rf.l1::after{opacity:1}
.rf.l2{transform:scale(1.08);z-index:2}.rf.l2::after{opacity:.55}
.rf.l3::after{opacity:.25}
#stage.phase-drawing .rf:not(.l1):not(.l2):not(.l3){filter:brightness(.55) saturate(.8)}
.rf.win{transform:scale(1.32);z-index:5;animation:winPulse .55s ease-in-out infinite alternate}
.rf.win::after{opacity:1}
.rf.win::before{content:"";position:absolute;left:50%;top:50%;width:230px;height:230px;margin:-115px 0 0 -115px;background:url(assets/rays.webp) center/contain no-repeat;animation:spin 6s linear infinite;z-index:-1}
@keyframes winPulse{to{transform:scale(1.42);filter:brightness(1.2)}}

#grid{position:absolute;inset:0;pointer-events:auto}
.cell{position:absolute;height:82px;margin-top:-41px;border-radius:14px;transition:background .2s,box-shadow .2s,transform .12s;touch-action:manipulation}
.cell .fl{position:absolute;left:4px;top:4px;width:52px;height:52px;transition:transform .2s}
.cell .mx{position:absolute;left:62px;top:10px;font-size:26px;color:#ffe3a0;letter-spacing:-.3px;text-shadow:0 2px 0 #3d1a05,0 0 10px rgba(255,190,70,.35)}
.cell .pill{position:absolute;left:8px;right:8px;bottom:2px;height:24px;border-radius:12px;border:1.5px solid #b98337;background:linear-gradient(#2a1206,#401c09);
  display:flex;align-items:center;justify-content:center;font-size:14px;color:#e8c98c;white-space:nowrap;overflow:hidden}
.cell .pill em{font-style:normal;color:#ffd24c;margin-left:4px}
.cell .stack{position:absolute;right:6px;top:4px;width:40px;height:40px}
.cell .stack img{position:absolute;width:34px;height:32px;left:3px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.5))}
.cell.mine .pill{border-color:#ffd56a;box-shadow:0 0 10px rgba(255,200,70,.35)}
.cell.bump .pill{animation:bump .3s}
@keyframes bump{40%{transform:scale(1.08)}}
.cell:active{transform:scale(.96)}
#stage.phase-betting .cell:hover{background:rgba(255,215,120,.08)}
.cell.win{background:radial-gradient(ellipse at 50% 45%,rgba(255,226,140,.5),rgba(255,180,60,.12) 70%);box-shadow:0 0 0 2px #ffd56a,0 0 30px rgba(255,200,80,.7);animation:cellWin .6s ease-in-out infinite alternate}
.cell.win .fl{transform:scale(1.15)}
@keyframes cellWin{to{box-shadow:0 0 0 3px #fff3c0,0 0 46px rgba(255,210,90,.95)}}
#stage.phase-result .cell:not(.win),#stage.phase-drawing .cell{opacity:.82}

.side{position:absolute;bottom:236px;z-index:10;display:flex;flex-direction:column;align-items:center;min-width:120px;text-shadow:0 2px 4px #000}
.side b{font-size:28px;color:#fff1c4}
.side span{font-size:15px;font-weight:500;color:#f1d595}
.side.l{left:6px}.side.r{right:6px}

/* ---------------- bottom panel ---------------- */
#panel{position:absolute;left:8px;right:8px;bottom:6px;height:218px;z-index:15;border-radius:22px 22px 14px 14px;
  background:linear-gradient(180deg,#6b2a12 0,#3a1206 40%,#2a0b04);border:3px solid #d9a54a;box-shadow:0 -8px 24px rgba(0,0,0,.55),inset 0 2px 0 rgba(255,220,150,.35)}
#chips{position:absolute;left:12px;top:10px;display:flex;gap:6px}
.chip{position:relative;width:112px;height:104px;transition:transform .15s,filter .15s}
.chip img{width:100%;height:100%}
.chip.on{transform:translateY(-6px) scale(1.04);filter:drop-shadow(0 0 10px rgba(255,214,90,.9))}
.chip.on::after{content:"";position:absolute;inset:-2px;border-radius:16px;border:3px solid #ffe27a;box-shadow:0 0 14px #ffc93c}
.chip.dis{filter:grayscale(.85) brightness(.6)}
#acts{position:absolute;right:12px;top:12px;width:208px;display:flex;flex-direction:column;gap:8px}
#btnRenew{height:62px;border-radius:16px;font-size:26px;color:#4a2306;background:linear-gradient(180deg,#fff1b8,#f0c35a 45%,#c9892a 55%,#f6d77d);
  border:2px solid #fff3c4;box-shadow:0 4px 0 #7a440e,0 6px 14px rgba(0,0,0,.5);text-shadow:0 1px 0 rgba(255,255,255,.6);transition:transform .1s,filter .2s}
#btnRenew:active{transform:translateY(3px);box-shadow:0 1px 0 #7a440e}
#btnRenew.dis{filter:grayscale(.9) brightness(.6)}
#btnAuto{height:34px;border-radius:17px;font-size:16px;color:#ffe2a0;border:1.5px solid #c98f3b;background:linear-gradient(#4a1a09,#2a0d04);display:flex;align-items:center;justify-content:center;gap:8px}
#btnAuto i{width:16px;height:16px;border-radius:50%;border:2px solid #c98f3b;transition:background .2s}
#btnAuto.on{color:#fff;border-color:#7fe36d;box-shadow:0 0 12px rgba(120,230,100,.5)}
#btnAuto.on i{background:#7fe36d;border-color:#7fe36d;animation:pulse 1s infinite alternate}
@keyframes pulse{to{opacity:.4}}
#me,#profit{position:absolute;top:122px;height:52px;border-radius:12px;border:1.5px solid #c98f3b;background:linear-gradient(#5e1c10,#36100a)}
#me{left:12px;width:338px}
#profit{right:12px;width:332px;display:flex;align-items:center;justify-content:space-between;padding:0 16px}
#profit span{font-size:16px;color:#f3d58e;font-weight:500}
#me .av{position:absolute;left:-2px;top:-8px;width:64px;height:64px}
.av{border-radius:50%;border:3px solid #e8b955;display:flex;align-items:center;justify-content:center;font-size:26px;color:#fff;overflow:hidden;background-size:cover;background-position:center;box-shadow:0 2px 6px rgba(0,0,0,.5)}
#me .mtx{position:absolute;left:74px;right:12px;top:2px;display:flex;justify-content:space-between;align-items:center;height:48px}
#me .mtx span{font-size:16px;color:#f3d58e;font-weight:500;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#me b,#profit b{display:flex;align-items:center;gap:8px;font-size:24px;color:#fff;font-variant-numeric:tabular-nums}
#me b img,#profit b img{width:26px;height:26px}
#me b.up em,#profit b.up em{animation:upTick .5s}
@keyframes upTick{40%{color:#ffe36b;transform:scale(1.12)}}
#record{position:absolute;left:12px;right:12px;bottom:8px;height:30px;border-radius:9px;background:rgba(0,0,0,.3);border:1px solid rgba(217,165,74,.5);display:flex;align-items:center;overflow:hidden}
#record .lbl{flex:none;padding:0 12px;font-size:15px;color:#f3d58e;font-weight:500}
#strip{display:flex;gap:6px;align-items:center;height:100%;overflow:hidden}
#strip .rc{position:relative;width:26px;height:26px;flex:none}
#strip .rc img{width:100%;height:100%}
#strip .rc.new::after{content:"NEW";position:absolute;left:50%;top:-5px;transform:translateX(-50%);font-size:8px;line-height:10px;padding:0 3px;border-radius:4px;background:#e2261d;color:#fff}
#strip .rc.enter{animation:rcIn .5s cubic-bezier(.2,1.5,.4,1)}
@keyframes rcIn{from{transform:scale(0)}}
#hint{position:absolute;left:0;right:0;bottom:226px;text-align:center;font-size:15px;font-weight:500;color:#ffe9b8;text-shadow:0 1px 3px #000;z-index:12;opacity:.9;pointer-events:none}

/* ---------------- banners ---------------- */
#banner{position:absolute;left:0;right:0;top:360px;height:150px;z-index:50;pointer-events:none;display:flex;align-items:center;justify-content:center;opacity:0}
#banner .bwrap{position:relative;width:640px;height:118px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(90deg,rgba(60,20,4,0),rgba(60,20,4,.92) 18%,rgba(60,20,4,.92) 82%,rgba(60,20,4,0));border-top:3px solid #e9bd5c;border-bottom:3px solid #e9bd5c;overflow:hidden}
#banner .bwrap::after{content:"";position:absolute;top:0;bottom:0;width:120px;left:-160px;background:linear-gradient(90deg,transparent,rgba(255,245,200,.55),transparent);transform:skewX(-20deg)}
#banner b{font-size:78px;letter-spacing:6px;background:linear-gradient(180deg,#fffbe0,#ffd65c 45%,#c97f1c 60%,#ffe28a);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 4px 0 #4a1c03) drop-shadow(0 0 12px rgba(255,190,60,.5))}
#banner.stop b{background:linear-gradient(180deg,#fff,#ffb3a6 40%,#d22a1c 62%,#ff8a6a);-webkit-background-clip:text;background-clip:text}
#banner.show{animation:bannerIn 1.5s cubic-bezier(.2,1,.3,1) forwards}
#banner.show .bwrap::after{animation:shine 1s .25s ease-out}
@keyframes bannerIn{0%{opacity:0;transform:scaleY(.2)}12%{opacity:1;transform:scaleY(1.08)}20%{transform:none}80%{opacity:1;transform:none}100%{opacity:0;transform:scale(1.15)}}
@keyframes shine{to{left:700px}}

/* ---------------- flying chips ---------------- */
#flyLayer{position:absolute;inset:0;z-index:45;pointer-events:none}
.fly{position:absolute;width:44px;height:41px;margin:-20px 0 0 -22px;will-change:transform}
.fly img{width:100%;height:100%;filter:drop-shadow(0 4px 4px rgba(0,0,0,.5))}

/* ---------------- toast ---------------- */
#toast{position:absolute;left:50%;top:470px;transform:translate(-50%,10px);z-index:80;padding:12px 24px;border-radius:24px;background:rgba(25,8,2,.9);border:1.5px solid #d9a54a;font-size:19px;color:#ffe7b0;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;white-space:nowrap}
#toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------------- modal / popups ---------------- */
#modal{position:absolute;inset:0;z-index:70;display:none;align-items:center;justify-content:center;background:rgba(10,3,0,.55)}
#modal.show{display:flex;animation:fade .2s}
@keyframes fade{from{opacity:0}}
.pop{position:relative;width:640px;max-height:900px;border-radius:30px;padding:0 0 26px;background:linear-gradient(180deg,#fffaf0,#f6e3b8);border:5px solid #c98d33;
  box-shadow:0 0 0 3px #6b3a0c,0 24px 60px rgba(0,0,0,.7),inset 0 0 0 3px #fff4cc;animation:popIn .32s cubic-bezier(.2,1.35,.4,1);color:var(--ink)}
@keyframes popIn{from{transform:scale(.8) translateY(30px);opacity:0}}
.pop .ph{position:relative;height:92px;margin:-5px -5px 0;border-radius:28px 28px 0 0;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#fff1b8,#f0c35a 40%,#b9781f 62%,#e9b955);border:5px solid #c98d33;border-bottom:4px solid #6b3a0c}
.pop .ph::before{content:"";position:absolute;left:50%;top:-30px;width:170px;height:46px;transform:translateX(-50%);border-radius:90px 90px 0 0;background:linear-gradient(180deg,#fff1b8,#e3ad4c);border:4px solid #c98d33;border-bottom:0}
.pop .ph h2{position:relative;margin:0;font-size:34px;color:#fff;text-shadow:0 3px 0 #6b3a0c,0 0 8px rgba(80,40,0,.5);letter-spacing:.5px}
.pop .x{position:absolute;right:-14px;top:-18px;width:62px;height:62px;border-radius:50%;z-index:3;background:radial-gradient(circle at 40% 35%,#9be27f,#2f8f2a 70%);border:3px solid #fff1b8;box-shadow:0 4px 10px rgba(0,0,0,.5)}
.pop .x::before,.pop .x::after{content:"";position:absolute;left:50%;top:50%;width:28px;height:5px;margin:-2.5px 0 0 -14px;background:#fff;border-radius:3px;transform:rotate(45deg)}
.pop .x::after{transform:rotate(-45deg)}
.pop .pb{padding:20px 26px 0;max-height:780px;overflow-y:auto}
.pop .pb::-webkit-scrollbar{width:6px}.pop .pb::-webkit-scrollbar-thumb{background:#c98d33;border-radius:3px}
.pop p{margin:0 0 12px;font-size:19px;line-height:1.5;font-weight:500}
.pop p b{color:#8a3b0a}
.tbl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px;padding:14px;border-radius:16px;background:#ecd6a4}
.tbl div{display:flex;align-items:center;gap:14px;padding:6px 12px;border-radius:12px;background:#f8eccd}
.tbl img{width:58px;height:58px}
.tbl b{font-size:30px;color:#8a3b0a}

/* result */
.res .ph h2{font-size:26px}
.res .cd{position:absolute;right:56px;font-size:22px;color:#fff;text-shadow:0 2px 0 #6b3a0c}
.res .hero{position:relative;height:250px;margin:0 -26px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at 50% 55%,#5a2a10,#2a1006 75%)}
.res .hero .rays{position:absolute;width:520px;height:520px;animation:spin 14s linear infinite;opacity:.9}
.res .hero .tro{position:relative;height:220px;margin-left:-70px;filter:drop-shadow(0 10px 14px rgba(0,0,0,.6));animation:troIn .7s cubic-bezier(.2,1.4,.4,1)}
.res .hero .wfl{position:absolute;left:calc(50% + 14px);top:56px;width:132px;height:132px;animation:flIn .7s .15s cubic-bezier(.2,1.5,.4,1) both}
.res .hero .rib{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);min-width:200px;padding:4px 34px;font-size:46px;color:#fff;text-align:center;
  background:linear-gradient(180deg,#e2362a,#9a1610);clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%,6% 50%);text-shadow:0 3px 0 #5a0904;animation:ribIn .6s .3s cubic-bezier(.2,1.5,.4,1) both}
@keyframes troIn{from{transform:translateY(60px) scale(.7);opacity:0}}
@keyframes flIn{from{transform:scale(0) rotate(-120deg)}}
@keyframes ribIn{from{transform:translateX(-50%) scaleX(0)}}
.res .nm{margin:14px 0 4px;text-align:center;font-size:20px;color:#8a3b0a}
.res .two{display:grid;grid-template-columns:1fr 1fr;margin:10px 0 0;border-radius:16px;overflow:hidden;border:2px solid #d4a24c;background:#f6e2b0}
.res .two div{padding:12px 6px;text-align:center}
.res .two div+div{border-left:2px solid #d4a24c}
.res .two span{display:block;font-size:17px;color:#8a5a20;font-weight:500}
.res .two b{display:inline-flex;align-items:center;gap:8px;font-size:30px;color:#6b2a06;margin-top:4px}
.res .two b img{width:28px;height:28px}
.res .two .won b{color:#1f8a2c}
.res .podh{display:flex;align-items:center;justify-content:center;gap:10px;margin:16px 0 4px;font-size:18px;color:#8a3b0a}
.res .podh img{width:24px;height:24px}
.pod{display:flex;align-items:flex-end;justify-content:center;gap:14px;min-height:200px;margin-top:6px}
.pod .p{width:170px;display:flex;flex-direction:column;align-items:center}
.pod .p .av{width:74px;height:74px;font-size:30px}
.pod .p.r1 .av{width:96px;height:96px;font-size:38px;border-color:#ffd24c;box-shadow:0 0 16px rgba(255,200,60,.8)}
.pod .p .n{max-width:160px;margin-top:4px;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pod .p .w{display:flex;align-items:center;gap:4px;font-size:17px;color:#1f8a2c}
.pod .p .w img{width:18px;height:18px}
.pod .p .base{width:100%;margin-top:6px;border-radius:10px 10px 0 0;display:flex;align-items:flex-start;justify-content:center;padding-top:6px;
  background:linear-gradient(180deg,#f3cf6c,#b9781f);box-shadow:inset 0 2px 0 #fff4c8}
.pod .p .base img{width:46px;height:46px}
.pod .r1 .base{height:70px}.pod .r2 .base{height:46px;background:linear-gradient(180deg,#e2e2ea,#9a9aac)}.pod .r3 .base{height:34px;background:linear-gradient(180deg,#e9b28a,#a5653a)}
.pod .p.empty .av{background:#e2cfa4;border-color:#c9a86a;color:#b08a4c}
.pod .p{animation:podIn .5s cubic-bezier(.2,1.4,.4,1) both}.pod .r1{animation-delay:.35s}.pod .r2{animation-delay:.5s}.pod .r3{animation-delay:.6s}
@keyframes podIn{from{transform:translateY(40px);opacity:0}}

/* ranking */
.tabs{display:flex;gap:10px;margin-bottom:12px}
.tabs button{flex:1;height:50px;border-radius:12px;font-size:19px;color:#8a5a20;background:#ecd6a4;border:2px solid #d4a24c}
.tabs button.on{color:#fff;background:linear-gradient(180deg,#f0c35a,#b9781f);border-color:#8a5216;text-shadow:0 2px 0 #6b3a0c}
.tabs.sub{width:60%}
.tabs.sub button{height:40px;font-size:16px}
.rkh,.rk{display:grid;grid-template-columns:76px 1fr 150px;align-items:center;padding:0 12px}
.rkh{height:36px;font-size:16px;color:#8a5a20}
.rkh span:last-child,.rk .pts{text-align:right}
.rlist{min-height:300px;max-height:420px;overflow-y:auto}
.rk{height:68px;border-bottom:1px solid #e4c88c;font-size:18px}
.rk .no{font-size:22px;color:#8a5a20}
.rk .no img{width:46px;height:46px}
.rk .nm{display:flex;align-items:center;gap:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rk .nm .av{flex:none;width:46px;height:46px;font-size:20px;border-width:2px}
.rk .pts{color:#6b2a06;font-variant-numeric:tabular-nums}
.rk.me{border-radius:14px;background:linear-gradient(90deg,#f6d77d,#eec362);border:0;margin-top:10px}
.settle{margin:10px 0 0;padding:8px;border-radius:10px;text-align:center;font-size:16px;color:#fff;background:linear-gradient(90deg,#b8241a,#e2463a,#b8241a)}
.empty{padding:60px 0;text-align:center;color:#a07a44;font-size:18px;font-weight:500}
.loading{padding:60px 0;text-align:center}
.loading i{display:inline-block;width:12px;height:12px;margin:0 5px;border-radius:50%;background:#c98d33;animation:dot 1s infinite}
.loading i:nth-child(2){animation-delay:.15s}.loading i:nth-child(3){animation-delay:.3s}
@keyframes dot{50%{opacity:.25;transform:scale(.6)}}

/* history */
.hrow{display:grid;grid-template-columns:1fr 120px 120px 120px;align-items:center;height:62px;padding:0 10px;border-bottom:1px solid #e4c88c;font-size:17px}
.hrow.h{height:34px;font-size:15px;color:#8a5a20}
.hrow .rr{display:flex;align-items:center;gap:8px}
.hrow .rr img{width:40px;height:40px}
.hrow small{display:block;font-size:13px;color:#a07a44;font-weight:500}
.hrow .w{color:#1f8a2c}
.hrow span:nth-child(n+3){text-align:right}

/* players */
.plc{text-align:center;font-size:20px;margin-bottom:10px;color:#8a3b0a}
.plist{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;max-height:520px;overflow-y:auto}
.plist div{display:flex;flex-direction:column;align-items:center;font-size:15px;font-weight:500;overflow:hidden}
.plist .av{width:70px;height:70px;font-size:28px;margin-bottom:4px}
.plist span{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------------- loader ---------------- */
#loader{position:fixed;inset:0;z-index:100;display:flex;align-items:flex-end;justify-content:center;background:radial-gradient(ellipse at 50% 70%,#5a2c0c,#1a0c04 70%);transition:opacity .4s}
#loader.done{opacity:0;pointer-events:none}
#loader .lwrap{width:100%;max-width:520px;height:min(100%,640px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
#loader .lball{width:110px;height:110px;animation:bounceBall 1s ease-in-out infinite}
#loader .lball img{width:100%;height:100%;animation:spin 2s linear infinite}
@keyframes bounceBall{50%{transform:translateY(-22px)}}
#loader .ltitle{display:flex;flex-direction:column;align-items:center;line-height:.95}
#loader .ltitle span{font-size:52px;letter-spacing:5px;background:linear-gradient(180deg,#fffbe0,#ffd65c 45%,#c97f1c 60%,#ffe28a);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 3px 0 #4a1c03)}
#loader .ltitle span+span{font-size:42px;letter-spacing:9px}
#loader .lbar{width:70%;height:16px;border-radius:9px;background:#2a1206;border:2px solid #c98d33;overflow:hidden}
#loader .lbar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#c97f1c,#ffe28a);transition:width .2s}
#loader .lpct{font-size:16px;color:#f3d58e}

@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}#beams{display:none}}

/* ===== DangLive UI asset pack ===== */
@font-face{font-family:"GSerif";src:url(fonts/DejaVuSerifCondensed-Bold.ttf) format("truetype");font-weight:700}
.ib{width:64px;height:64px}
.ib img{filter:drop-shadow(0 4px 5px rgba(0,0,0,.6))}
#btnBack{top:10px}#btnRank{top:10px;right:86px}#btnMenu{top:10px}
#btnPlayers{width:76px;height:76px}
#menuDrop img{width:44px;height:44px}
.side{bottom:258px;min-width:0;width:184px;height:64px;padding-top:9px;justify-content:flex-start;gap:0;
  background:url(assets/pn_total.webp) center/100% 100% no-repeat;text-shadow:none;font-family:GSerif,Georgia,serif}
.side span{font-size:14px;font-weight:700;color:#ffe7a6;line-height:16px}
.side b{font-size:22px;line-height:28px;color:#fff3cf;font-weight:700;font-variant-numeric:tabular-nums}
.side.l{left:4px}.side.r{right:4px}
#panel{height:240px}
#chips{left:10px;top:12px;gap:8px}
.chip{width:98px;height:98px;border-radius:50%}
.chip img{filter:drop-shadow(0 4px 4px rgba(0,0,0,.5))}
.chip.on{transform:translateY(-7px) scale(1.06);filter:drop-shadow(0 0 12px rgba(255,214,90,.95))}
.chip.on::after{inset:3px;border-radius:50%;border:3px solid #fff2a8;box-shadow:0 0 16px #ffc93c,inset 0 0 10px rgba(255,220,120,.6)}
#acts{right:10px;top:8px;width:206px;gap:4px}
#btnRenew{height:68px;border-radius:0;background:url(assets/btn_gold.webp) center/100% 100% no-repeat;box-shadow:none;border:0;
  font-family:GSerif,Georgia,serif;font-size:26px;letter-spacing:1px;color:#4b210b;text-shadow:0 1px 0 #fff0b5;padding-bottom:6px}
#btnRenew:active{transform:translateY(2px);box-shadow:none}
#btnAuto{height:42px;border-radius:0;border:0;background:url(assets/btn_dark.webp) center/100% 100% no-repeat;font-family:GSerif,Georgia,serif;font-size:17px;color:#fff0c4;padding-bottom:3px}
#btnAuto i{border-color:#f8d77d}
#btnAuto.on{box-shadow:none;filter:drop-shadow(0 0 8px rgba(120,230,100,.7))}
#me,#profit{top:118px;width:340px;height:79px;border:0;border-radius:0;background:url(assets/pn_score.webp) center/100% 100% no-repeat;padding:0}
#me{left:6px}#profit{right:6px;display:block}
#me .av{display:none}
.cn{position:absolute;left:31px;top:27px;width:26px;height:26px}
#me .mtx{left:70px;right:36px;top:16px;height:46px}
#me .mtx span,#profit>span{font-family:GSerif,Georgia,serif;font-size:15px;color:#fff0c8;font-weight:700}
#profit>span{position:absolute;left:70px;top:29px}
#me b,#profit b{font-family:GSerif,Georgia,serif;font-size:21px;color:#fff4d7}
#profit b{position:absolute;right:36px;top:24px}
#record{bottom:6px;border-color:rgba(243,208,122,.55);background:linear-gradient(#3a1210,#1d0807)}
#record .lbl{font-family:GSerif,Georgia,serif;font-weight:700;color:#ffe7a6}
.pop .ph::before{top:-58px;width:170px;height:73px;border:0;border-radius:0;background:url(assets/crown.webp) center/contain no-repeat}
#me b em,#profit b em,.side b{font-style:normal}
.side{bottom:250px;width:158px;height:56px;padding-top:8px}
.side span{font-size:12px;line-height:14px}
.side b{font-size:19px;line-height:24px}
