/* PvP Arena — full-screen glass presentation over the dedicated arena artwork. */
#modal-layer:has(.pvp-screen){padding:0;background:rgba(5,19,32,.8);backdrop-filter:blur(2px)}
#modal-layer:has(.pvp-screen)::before{content:'';position:fixed;left:var(--pvp-frame-left);top:var(--pvp-frame-top);width:var(--pvp-frame-width);height:var(--pvp-frame-height);box-sizing:border-box;background:#83cdea url('assets/battle/pvp-arena-v1.png') center/cover no-repeat;overflow:hidden}
.pvp-screen{position:fixed;z-index:1;width:941px;height:1672px;transform-origin:top left;padding:202px 27px 36px;box-sizing:border-box;overflow:hidden;color:#0a2d61;font-family:Rajdhani,Sarabun,sans-serif}
.pvp-top{position:absolute;left:28px;right:28px;top:38px;height:114px;display:grid;grid-template-columns:104px 1fr 104px;align-items:center;gap:49px}.pvp-back,.pvp-menu{width:104px;height:104px;border:3px solid #b8fbff;border-radius:52px;background:linear-gradient(145deg,rgba(20,132,164,.96),rgba(14,71,111,.97));box-shadow:inset 0 0 13px rgba(133,255,255,.52),0 6px 12px rgba(0,52,87,.35);color:#fff}.pvp-back{font:700 102px/80px Rajdhani}.pvp-menu{border-radius:27px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:23px}.pvp-menu i{width:53px;height:9px;border-radius:7px;background:#fff}.pvp-title{height:91px;border:3px solid #73f8f4;border-radius:49px;background:linear-gradient(110deg,rgba(0,124,135,.95),rgba(8,91,139,.95));box-shadow:inset 0 0 19px rgba(108,255,244,.36),0 5px 10px rgba(0,64,91,.28);display:flex;align-items:center;justify-content:center;gap:22px;color:#fff;font-size:51px;font-weight:700;white-space:nowrap}.pvp-title span{font-size:54px}
.pvp-glass{border:3px solid #e5ffff;border-radius:31px;background:linear-gradient(145deg,rgba(226,253,252,.9),rgba(158,221,238,.86));box-shadow:inset 0 0 24px rgba(255,255,255,.7),0 0 14px rgba(53,239,255,.66),0 9px 20px rgba(0,67,96,.25);backdrop-filter:blur(8px)}
.pvp-intro{height:132px;padding:24px;text-align:center}.pvp-intro h2{margin:0;font-size:43px;line-height:1.05}.pvp-intro p{margin:7px 0 0;color:#456f93;font-size:28px}
#pvp-me{height:121px!important;margin:15px 0!important;padding:19px 6px!important;display:grid;grid-template-columns:repeat(4,1fr);color:#123965!important;font-size:0!important;text-align:center}.pvp-stat{border-right:2px solid rgba(35,122,160,.45);font-size:23px}.pvp-stat:last-child{border:0}.pvp-stat b{display:block;color:#071c52;font-size:34px;line-height:1.05}
.pvp-online{padding:0 18px 17px;overflow:hidden}.pvp-online-title{height:82px;margin:0 -18px;padding:0 33px;display:flex;align-items:center;gap:18px;background:linear-gradient(110deg,rgba(0,165,190,.9),rgba(20,118,169,.86));color:#fff;font-size:38px;font-weight:700}.pvp-online-title span{font-size:44px}#pvp-list{max-height:270px!important;overflow-y:auto;padding-top:8px}.pvp-empty{padding:43px 20px;text-align:center;color:#66839d;font-size:26px}.pvp-opponent{min-height:174px;padding:12px 10px;display:grid;grid-template-columns:160px 1fr 245px;align-items:center;gap:10px;border:2px solid #edffff;border-radius:25px;background:rgba(235,254,254,.7)}.pvp-opponent+.pvp-opponent{margin-top:8px}.pvp-opponent-art{width:148px;height:148px;object-fit:contain}.pvp-opponent-copy{min-width:0}.pvp-opponent-copy b{display:block;font-size:34px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pvp-opponent-copy span{display:block;font-size:25px;color:#2d6086}.pvp-opponent-copy small{font-size:23px;color:#376888;white-space:nowrap}.pvp-fight{width:235px!important;height:92px!important;margin:0!important;padding:0!important;border:4px solid #fff2a4!important;border-radius:36px!important;background:linear-gradient(#ffd665,#f39a16)!important;box-shadow:inset 0 3px 5px #fff,0 0 14px #ffc737!important;color:#fff!important;font-size:34px!important;text-shadow:0 2px 2px #8b5300}
.pvp-close{position:absolute;left:155px;right:155px;bottom:87px;height:104px;border:3px solid #eaffff;border-radius:34px;background:linear-gradient(#efffff,#b9e5f0);box-shadow:inset 0 3px 6px #fff,0 5px 12px rgba(0,68,91,.3);color:#123d68;font:700 38px Rajdhani,Sarabun,sans-serif}
.pvp-waiting{padding:0;display:grid;place-items:center;background:rgba(5,49,80,.46);backdrop-filter:blur(5px)}.pvp-wait-card{width:628px;min-height:774px;padding:30px;border:4px solid #bfffff;border-radius:45px;background:linear-gradient(145deg,rgba(0,174,193,.96),rgba(4,105,143,.97));box-shadow:inset 0 0 38px rgba(99,255,245,.4),0 0 22px rgba(52,247,255,.8),0 23px 50px rgba(0,34,58,.58);text-align:center;color:#fff}.pvp-wait-medal{font-size:180px;line-height:1}.pvp-wait-card h2{margin:12px 0 0;font-size:51px}.pvp-wait-card p{margin:3px 0 23px;font-size:30px;color:#c6f5ff}.pvp-countdown{--pct:100;width:232px;height:232px;margin:auto;padding:13px;box-sizing:border-box;border-radius:50%;background:conic-gradient(#15edee calc(var(--pct)*1%),rgba(255,255,255,.3) 0);box-shadow:0 0 25px #1deff2;transition:background .3s linear}.pvp-countdown-hole{width:100%;height:100%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(5,74,111,.92);box-shadow:inset 0 0 22px rgba(6,35,66,.45);font-size:43px}.pvp-countdown b{font-size:72px;line-height:.8}.pvp-wait-card button{width:100%;height:101px;margin-top:28px;border:3px solid #eaffff;border-radius:32px;background:linear-gradient(#efffff,#b9e5f0);color:#0b2a60;font:700 39px Rajdhani,Sarabun,sans-serif}
.pvp-battle-screen{padding:203px 25px 34px}.pvp-battle-screen .pvp-top{grid-template-columns:1fr;left:224px;right:224px}.pvp-battle-screen .pvp-title{font-size:56px}.pvp-battle-screen .pvp-back,.pvp-battle-screen .pvp-menu{display:none}.pvp-battle-head{height:210px;display:grid;grid-template-columns:1fr 1fr;gap:28px}.pvp-battle-head .bt-side{padding:15px 18px;display:grid;grid-template-columns:133px 1fr;grid-template-rows:auto auto auto;align-items:center;text-align:left}.pvp-battle-head .bt-side img{grid-row:1/4;width:132px;height:132px;object-fit:contain}.pvp-battle-head .bt-side:last-child img{transform:scaleX(-1)}.pvp-battle-head .bt-label{font-size:31px!important;margin:0!important}.pvp-battle-head .bt-stats{font-size:20px}.pvp-battle-head .bt-hp{margin:0}.pvp-battle-head .bt-hp .bar{height:22px}.pvp-battle-head .bt-hpval{font-size:24px}.pvp-battle-stage{position:absolute;left:25px;right:25px;top:447px;height:943px;background:url('assets/battle/pvp-arena-v1.png') center/cover no-repeat;border-radius:28px;overflow:hidden}.pvp-battle-stage::after{content:'VS';position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);color:#fff;font:700 75px Rajdhani;text-shadow:0 0 15px #00bfff,0 3px 4px #0b5492}.pvp-fighter{position:absolute;width:390px;height:390px;object-fit:contain;filter:drop-shadow(0 15px 12px rgba(0,35,55,.28))}.pvp-fighter.left{left:35px;bottom:110px}.pvp-fighter.right{right:35px;bottom:110px;transform:scaleX(-1)}.pvp-battle-screen .bt-log{position:absolute;left:29px;right:29px;bottom:39px;height:140px;padding:0 35px;display:flex;align-items:center;justify-content:center;border:3px solid #eaffff;border-radius:31px;background:linear-gradient(145deg,rgba(231,254,253,.94),rgba(168,226,239,.92));box-shadow:inset 0 0 20px #fff,0 0 13px rgba(50,234,255,.65);color:#0c2c60;font-size:34px;text-align:center}
.pvp-result-screen{padding:365px 92px 190px;background:rgba(2,37,65,.27);backdrop-filter:blur(3px)}.pvp-result-card{position:relative;min-height:835px;padding:185px 38px 38px}.pvp-result-icon{position:absolute;left:50%;top:-115px;transform:translateX(-50%);width:230px;height:230px;border:10px solid #bdfcff;border-radius:50%;background:linear-gradient(#376b91,#173c65);box-shadow:0 0 20px #53eaff;display:grid;place-items:center;font-size:130px}.pvp-result-card h2{margin:0;text-align:center;font-size:78px;line-height:1}.pvp-result-card>p{text-align:center;margin:5px 0 28px;font-size:30px;color:#3f6a8f}.pvp-result-box{padding:20px;border:3px solid #efffff;border-radius:27px;background:rgba(244,255,255,.66);text-align:center;font-size:31px}.pvp-result-box+.pvp-result-box{margin-top:17px}.pvp-rating-line{display:flex;align-items:center;justify-content:center;gap:42px;font-size:54px;font-weight:700}.pvp-rating-delta{display:inline-block;margin-top:8px;padding:4px 30px;border-radius:17px;background:#ffd7da;color:#d71826;font-size:36px;font-weight:700}.pvp-reward{color:#f39a00;font-size:48px;font-weight:700}.pvp-result-back{width:100%;height:101px;margin-top:31px;border:4px solid #fff3a8;border-radius:35px;background:linear-gradient(#ffd665,#f39a16);box-shadow:inset 0 3px 5px #fff,0 0 13px #ffc737;color:#fff;font:700 42px Rajdhani,Sarabun,sans-serif}
@media(max-width:360px){.pvp-top{gap:30px}.pvp-title{font-size:45px}.pvp-opponent{grid-template-columns:140px 1fr 215px}.pvp-fight{width:205px!important}}
#modal-layer:has(.pvp-waiting)::before,#modal-layer:has(.pvp-result-screen)::before{background-image:linear-gradient(rgba(3,45,74,.46),rgba(3,45,74,.46)),url('assets/battle/pvp-arena-v1.png')}
.pvp-waiting,.pvp-result-screen{background:transparent;backdrop-filter:none}
.pvp-battle-stage{background:none;border-radius:0}
.pvp-reward.no-reward{font-size:24px;color:#66839d}

/* Design-v1 fidelity pass: image-backed symbols and fuller glass hierarchy. */
.pvp-title img{width:86px;height:86px;margin:-12px 0;object-fit:contain;filter:drop-shadow(0 3px 4px rgba(0,34,74,.42))}
.pvp-intro{height:154px;padding:27px 24px}.pvp-intro h2{font-size:46px}.pvp-intro p{margin-top:10px;font-size:30px}
#pvp-me{height:124px!important;margin:16px 0!important;padding:20px 8px!important}.pvp-stat{font-size:25px}.pvp-stat b{margin-top:4px;font-size:38px}
.pvp-online{min-height:316px;padding:0 18px 18px}.pvp-online-title{height:84px;font-size:40px}.pvp-online-dot{position:relative;width:48px;height:34px}.pvp-online-dot::before,.pvp-online-dot::after{content:'';position:absolute;border-radius:50%;background:#fff}.pvp-online-dot::before{width:17px;height:17px;left:7px;top:0;box-shadow:22px 3px 0 -2px #fff}.pvp-online-dot::after{width:45px;height:19px;left:1px;bottom:0;border-radius:22px 22px 7px 7px}
#pvp-list{max-height:224px!important}.pvp-opponent{min-height:203px;grid-template-columns:178px 1fr 240px;padding:10px 16px;background:linear-gradient(120deg,rgba(244,255,255,.88),rgba(195,239,247,.78))}.pvp-opponent-medal{width:170px;height:170px;object-fit:contain;filter:drop-shadow(0 8px 8px rgba(7,69,103,.2))}.pvp-opponent-copy b{font-size:40px}.pvp-opponent-copy span{font-size:28px}.pvp-opponent-copy small{font-size:24px}.pvp-fight{height:98px!important;font-size:38px!important}
.pvp-close{bottom:91px;height:108px;font-size:42px}
.pvp-wait-card{min-height:790px;padding:35px 52px 42px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.pvp-wait-medal{display:block;width:275px;height:275px;object-fit:contain;margin:-7px auto -8px;filter:drop-shadow(0 10px 14px rgba(0,35,77,.32))}.pvp-wait-card h2{font-size:54px}.pvp-wait-card p{font-size:32px}.pvp-countdown{width:238px;height:238px}.pvp-wait-card button{margin-top:30px}
.pvp-battle-screen .pvp-title img{width:94px;height:94px}.pvp-battle-head{height:222px;gap:23px}.pvp-battle-head .bt-side{grid-template-columns:145px 1fr;padding:17px}.pvp-battle-head .bt-side img{width:143px;height:143px}.pvp-battle-head .bt-label{font-size:34px!important}.pvp-battle-head .bt-stats{font-size:22px}.pvp-battle-stage{top:459px;height:920px}.pvp-fighter{width:420px;height:420px}.pvp-fighter.left{left:20px;bottom:97px}.pvp-fighter.right{right:20px;bottom:97px}.pvp-battle-screen .bt-log{height:151px;justify-content:flex-start;gap:27px;padding:0 46px;font-size:38px;text-align:left}.pvp-battle-screen .bt-log img{flex:0 0 auto;width:72px;height:72px;object-fit:contain}
.pvp-result-card{min-height:868px;padding:190px 42px 40px}.pvp-result-icon{top:-132px;width:270px;height:270px;border:0;background:transparent;box-shadow:none}.pvp-result-icon img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 18px rgba(60,235,255,.72))}.pvp-result-card h2{font-size:84px}.pvp-result-card>p{font-size:33px;margin-bottom:31px}.pvp-result-box{font-size:34px}.pvp-result-back{height:108px;font-size:45px}
@media(min-width:520px){#modal-layer:has(.pvp-screen)::before{border:2px solid rgba(220,255,255,.72);border-radius:29px;box-shadow:0 0 0 7px rgba(142,221,240,.18),0 22px 65px rgba(0,0,0,.58)}}
/* Matchmaking (11-12): gold Find button between my stats and the online list; the search
   panel overlays the lobby from INSIDE it (so the client still reports lobby:on while queued). */
.pvp-find{display:block;width:100%;height:112px;margin:0 0 16px;border:4px solid #fff2a4;border-radius:40px;background:linear-gradient(#ffd665,#f39a16);box-shadow:inset 0 3px 5px #fff,0 0 16px #ffc737;color:#fff;font:700 44px Rajdhani,Sarabun,sans-serif;text-shadow:0 2px 2px #8b5300;cursor:pointer}
.pvp-search{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:rgba(5,49,80,.55);backdrop-filter:blur(5px)}
