/* Monster Data matched to new ui/monster-data-v1.png. */
#modal-layer:has(.monster-screen-v1){padding:0;background:#11131c url('assets/bg.png') center/cover no-repeat;backdrop-filter:none}
.monster-screen-v1{position:relative;width:min(100%,480px);height:min(100dvh,900px);padding:17px 15px 19px;box-sizing:border-box;display:grid;grid-template-rows:88px minmax(0,1fr);background:linear-gradient(rgba(65,177,210,.06),rgba(74,185,213,.08)),url('assets/home/habitat.png') center/cover no-repeat;color:#0d3970;font-family:Rajdhani,Sarabun,sans-serif;overflow:hidden}
.monster-screen-v1::before{content:"";position:absolute;inset:16px 14px 11px;border:3px solid rgba(166,252,255,.92);border-radius:29px;background:linear-gradient(145deg,rgba(20,142,158,.84),rgba(15,104,150,.78));box-shadow:0 0 17px rgba(74,247,255,.6),inset 0 0 25px rgba(144,255,246,.28);pointer-events:none}
.monster-v1-header{position:relative;z-index:2;display:grid;grid-template-columns:50px minmax(0,1fr) 34px 54px;align-items:center;gap:6px;padding:5px 8px 8px 18px;color:#fff}.monster-v1-header>img{width:48px;height:48px;filter:drop-shadow(0 4px 3px rgba(22,38,106,.35))}.monster-v1-header h1{margin:0;font-size:1.34rem;line-height:1;letter-spacing:.025em;white-space:nowrap}.monster-v1-header p{margin:2px 0;font-size:.86rem}.monster-v1-header>b{align-self:end;margin-bottom:8px;font-size:.92rem}.monster-v1-progress{height:13px;border:1.5px solid #c9ffff;border-radius:9px;background:rgba(9,80,123,.6);overflow:hidden}.monster-v1-progress i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#27e292,#69f299);box-shadow:0 0 8px rgba(66,255,164,.7)}.monster-v1-close{width:54px;height:54px;border:2px solid #b9ffff;border-radius:50%;background:linear-gradient(145deg,#1a87a5,#18547f);box-shadow:0 5px 9px rgba(0,45,74,.35),inset 0 0 12px rgba(132,249,255,.5);color:#fff;font:700 2.65rem/1 Rajdhani;cursor:pointer}
.monster-v1-body{position:relative;z-index:2;margin:0 23px 0 8px;padding:9px 10px 12px;overflow-y:auto;scrollbar-width:none;border:2px solid rgba(220,255,255,.95);border-radius:20px;background:linear-gradient(145deg,rgba(220,252,251,.88),rgba(168,222,236,.86));box-shadow:inset 0 0 22px rgba(255,255,255,.45)}.monster-v1-body::-webkit-scrollbar{display:none}.monster-v1-section{padding:3px 5px 9px;border-bottom:1px solid rgba(255,255,255,.82)}.monster-v1-section:last-child{border-bottom:0}.monster-v1-section h2{margin:0 0 5px;font-size:1.04rem;line-height:1}.monster-v1-section h2 span{display:inline-block;width:26px;text-align:center;margin-right:5px}.monster-v1-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.monster-v1-tile{position:relative;min-width:0;aspect-ratio:1/1;border:2px solid rgba(229,255,255,.95);border-radius:14px;background:linear-gradient(145deg,rgba(214,249,249,.8),rgba(157,213,232,.8));box-shadow:inset 0 0 13px rgba(255,255,255,.44);overflow:hidden;display:grid;place-items:center;padding:0;cursor:pointer}.monster-v1-tile.unlocked{border-color:#73ffe9;box-shadow:0 0 7px rgba(36,255,224,.45),inset 0 0 12px rgba(255,255,255,.5)}.monster-v1-level{position:absolute;z-index:3;left:3px;top:3px;min-width:22px;height:22px;padding:0 3px;border-radius:13px;background:linear-gradient(#a84dff,#6327db);border:1.5px solid #f4ddff;color:#fff;box-sizing:border-box;font-size:.7rem;font-weight:700;line-height:19px;text-align:center}.monster-v1-art{width:88%;height:88%;display:grid;place-items:center}.monster-v1-art>img{width:100%;height:100%;object-fit:contain}.monster-v1-art>b{font-size:2.15rem}.monster-v1-tile.locked .monster-v1-art{filter:grayscale(1) brightness(.42);opacity:.72}.monster-v1-lock{position:absolute;z-index:2;width:32%;height:32%;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3))}.monster-v1-tile.empty{cursor:default}.monster-v1-tile.empty>img{width:45%;height:45%;opacity:.45}
.monster-v1-scroll{position:absolute;z-index:3;right:23px;top:105px;bottom:24px;width:9px;border-radius:7px;background:rgba(5,70,112,.65)}.monster-v1-scroll i{display:block;width:7px;height:68px;margin-left:1px;border-radius:7px;background:#e6ffff;box-shadow:0 0 4px #fff;transition:transform .08s linear}
.monster-detail-shade{position:absolute;z-index:10;inset:0;padding:24px;display:grid;place-items:center;background:rgba(3,34,60,.7);backdrop-filter:blur(3px)}.monster-detail-card{position:relative;width:min(100%,340px);max-height:78dvh;overflow-y:auto;padding:18px;box-sizing:border-box;border:2px solid #cfffff;border-radius:25px;background:linear-gradient(145deg,#f2ffff,#ccebea);box-shadow:0 20px 45px rgba(0,25,50,.52);text-align:center;color:#123b60}.monster-detail-close{position:absolute;right:9px;top:9px;width:34px;height:34px;border:1px solid #b9faff;border-radius:50%;background:#1a6f91;color:#fff;font-size:1.4rem}.monster-detail-art{position:relative;width:140px;height:140px;margin:auto;display:grid;place-items:center}.monster-detail-art>img{width:100%;height:100%;object-fit:contain}.monster-detail-art>b{font-size:4rem}.monster-detail-art.locked>img:first-child{filter:grayscale(1) brightness(.42)}.monster-detail-art .monster-v1-lock{width:45px;height:45px;left:48px;top:48px}.monster-detail-card>small{color:#7143d8;font-weight:700}.monster-detail-card h2{margin:2px 0;font-size:1.35rem}.monster-detail-sub{margin:0;color:#52728b}.monster-detail-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:10px 0}.monster-detail-stats span{padding:6px 2px;border-radius:11px;background:rgba(117,200,220,.3);font-size:.72rem;font-weight:700}.monster-detail-lore{margin:8px 0 0;padding:10px;border-radius:13px;background:rgba(255,255,255,.55);font-size:.78rem;text-align:left}
.monster-detail-drops{margin:8px 0 0;padding:10px;border-radius:13px;background:rgba(255,244,214,.65);font-size:.78rem;text-align:left;color:#6a4c1f}.monster-detail-drops b{color:#8a5c00}
@media(max-width:360px){.monster-screen-v1{padding-inline:7px}.monster-screen-v1::before{inset-inline:6px}.monster-v1-header{grid-template-columns:42px minmax(0,1fr) 28px 46px;padding-left:12px;gap:4px}.monster-v1-header>img{width:40px;height:40px}.monster-v1-header h1{font-size:.98rem}.monster-v1-header p{font-size:.7rem}.monster-v1-header>b{font-size:.74rem}.monster-v1-close{width:46px;height:46px}.monster-v1-body{margin-left:7px;margin-right:20px;padding-inline:7px}.monster-v1-grid{gap:5px}.monster-v1-section h2{font-size:.92rem}.monster-v1-level{min-width:20px;height:20px;line-height:17px}.monster-v1-scroll{right:13px}}
