/* Real World — 941 × 1672 reference coordinate space. */
#app:has(#screen-openworld.active){background:#b7d0df}
#app:has(#screen-openworld.active) #topbar,
#app:has(#screen-openworld.active) #bottomnav{display:none}
#app:has(#screen-openworld.active) .pet-region{position:absolute;inset:0}
#app:has(#screen-openworld.active) #screens{position:absolute;left:var(--map-left);top:var(--map-top);width:941px;height:1672px;transform:scale(var(--map-scale));transform-origin:top left;padding:0;overflow:visible}
#screen-openworld{position:relative;width:941px;height:1672px;overflow:hidden;color:#173e66;font-family:Arial,'Sarabun',sans-serif;background:#c6d4df}
#screen-openworld.active{animation:none}

#screen-openworld #ow-map-wrap{position:absolute;inset:0;width:941px;height:1672px;background:linear-gradient(#bdd0dd,#d7e0e6);overflow:hidden}
#screen-openworld #ow-map{position:absolute;inset:0;width:941px;height:1672px;background:#cbd9e2}
#screen-openworld #ow-map.ow-local-test-map{background:
  linear-gradient(116deg,transparent 0 41%,#63c4eb 41.3% 50%,transparent 50.3%),
  repeating-linear-gradient(32deg,transparent 0 94px,#fff 96px 117px,transparent 119px 188px),
  repeating-linear-gradient(124deg,transparent 0 126px,#fff 128px 151px,transparent 153px 238px),
  #dfe5e7;overflow:hidden}
.ow-local-test-map::before,.ow-local-test-map::after{content:'';position:absolute;border-radius:42% 58% 54% 46%;background:#b9e4a7;box-shadow:inset 0 0 0 8px #d6f0c9}
.ow-local-test-map::before{left:-60px;top:450px;width:390px;height:330px}.ow-local-test-map::after{right:-45px;bottom:210px;width:370px;height:390px}
.ow-test-place{position:absolute;z-index:1;color:#48627a;font-size:28px;font-weight:700}.ow-test-place.bang{left:110px;top:445px}.ow-test-place.river{right:7px;top:420px;transform:rotate(51deg)}.ow-test-place.park{right:45px;bottom:385px;color:#307343;text-align:center}.ow-test-badge{position:absolute;left:30px;bottom:28px;z-index:4;padding:10px 20px;border:3px solid #fff;border-radius:24px;background:#185e81df;color:#fff;font-size:23px;font-weight:800;letter-spacing:2px;box-shadow:0 4px 10px #143d5c55}
.ow-local-player{position:absolute;left:50%;top:57%;z-index:8;width:150px;height:150px;transform:translate(-50%,-50%);display:grid;place-items:center;pointer-events:none}.ow-local-player span{position:absolute;width:150px;height:150px;border:5px solid #64dfff;border-radius:50%;background:#70e8ff38;box-shadow:0 0 20px #43dafa}.ow-local-player img{position:relative;width:112px;height:112px;object-fit:contain;filter:drop-shadow(0 9px 7px #18476966)}.ow-local-player.pulse span{animation:ow-test-pulse .65s ease}
.ow-local-monster{position:absolute;z-index:7;width:105px;height:105px;padding:0;transform:translate(-50%,-50%);border:0;background:transparent;cursor:pointer;filter:drop-shadow(0 9px 6px #233c5266)}.ow-local-monster img{width:100%;height:100%;object-fit:contain}.ow-local-monster:active{transform:translate(-50%,-50%) scale(.92)}
.ow-recenter-btn.ow-local-recenter{position:absolute;right:28px;bottom:28px;z-index:29;margin:0}
@keyframes ow-test-pulse{from{transform:scale(.55);opacity:1}to{transform:scale(1.6);opacity:0}}
#screen-openworld #ow-map .gm-style{font-family:Arial,'Sarabun',sans-serif}
#screen-openworld #ow-map .gm-style-cc,
#screen-openworld #ow-map .gmnoprint:not(:has(.ow-recenter-btn)){opacity:.55}

.ow-header{position:absolute;left:31px;top:24px;width:879px;height:79px;display:grid;grid-template-columns:86px minmax(0,1fr) 210px 165px 86px;gap:8px;align-items:center;z-index:20}
.ow-header h1{position:relative;width:100%;height:74px;min-width:0;margin:0;padding:16px 28px;border:3px solid #72e7f4;border-radius:38px;background:linear-gradient(100deg,rgba(0,113,119,.94),rgba(0,99,139,.92));box-shadow:inset 0 0 13px rgba(114,255,235,.25),0 4px 8px rgba(0,62,85,.22);color:#fff;font-size:39px;line-height:37px;text-align:center;text-shadow:0 3px 2px #145279;white-space:nowrap;overflow:hidden}
.ow-header .map-wallet,.ow-header .map-energy{z-index:auto}

.ow-tabs{position:absolute;left:52px;top:117px;width:837px;height:105px;display:flex;border:3px solid #e9ffff;border-radius:54px;background:#d6f7f5e8;box-shadow:0 4px 12px #27739178;overflow:hidden;z-index:19}
.ow-tabs button{position:relative;flex:1;border:0;background:transparent;color:#1b4c72;font:700 31px Arial,sans-serif;display:flex;align-items:center;justify-content:center;gap:24px;cursor:pointer}
.ow-tabs button.active{flex:1.08;color:#fff;border:3px solid #75f5f3;border-radius:52px;background:linear-gradient(135deg,#28e6e8,#11aeda);box-shadow:inset 0 0 0 4px #ffffff45,0 3px 9px #147b9d80;text-shadow:0 3px 2px #08729a}
.ow-tabs img{width:91px;height:76px;object-fit:contain;filter:drop-shadow(0 3px 2px #17435c77)}
.ow-tabs svg{width:68px;height:68px;fill:none;stroke:currentColor;stroke-width:6;stroke-linecap:round}

#ow-status{position:absolute;left:0;top:239px;width:941px;height:160px;z-index:18;pointer-events:none}
.ow-core-status{position:absolute;left:56px;top:0;width:829px;height:76px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;border:3px solid #eaffff;border-radius:40px;background:linear-gradient(110deg,#f3ffffed,#d2f4f0f0);box-shadow:0 4px 13px #247b996e;color:#23486b;font-size:27px;font-weight:700}
.ow-core-status span{white-space:nowrap}.ow-core-status i{display:block;width:2px;height:38px;background:#4c91b0aa}
.ow-core-status .ow-hp{color:#24496b}.ow-core-status .ow-str{color:#ef493d}.ow-core-status .ow-spd{color:#148ae7}.ow-core-status .ow-def{color:#15933c}
.ow-tool-row{position:absolute;left:52px;top:86px;width:837px;height:74px;padding-left:28px;display:flex;align-items:center;justify-content:space-between;border:3px solid #eaffff;border-radius:38px;background:linear-gradient(110deg,#efffffed,#d5f7f2ed);box-shadow:0 4px 13px #247b996e;pointer-events:auto;overflow:hidden}
.ow-evd{display:flex;align-items:center;gap:10px;color:#164b81;font-size:26px;font-weight:800;white-space:nowrap}.ow-evd::before{content:'';flex:none;width:38px;height:38px;background:url('assets/stat/stat-dodge.png') center/contain no-repeat}
.ow-crit{display:flex;align-items:center;gap:10px;margin-left:18px;margin-right:14px;color:#164b81;font-size:26px;font-weight:800;white-space:nowrap}.ow-crit::before{content:'';flex:none;width:38px;height:38px;background:url('assets/stat/stat-crit.png') center/contain no-repeat}
.ow-world-lv{margin-left:auto;margin-right:12px;flex:none;height:46px;padding:0 18px 0 8px;display:flex;align-items:center;gap:6px;border:3px solid #514bf4;border-radius:23px;background:#ffffffb8;color:#3d37c9;font:800 24px Arial,sans-serif;white-space:nowrap;cursor:pointer}.ow-world-lv img{width:34px;height:34px;object-fit:contain}
#ow-heal-btn{align-self:stretch;min-width:165px;padding:0 20px;border:3px solid #7effff;border-radius:38px;background:linear-gradient(135deg,#28e6e8,#0aa9d9);box-shadow:inset 0 0 0 4px #ffffff40,0 3px 9px #147b9d80;color:#fff;font:800 28px Arial,sans-serif;text-shadow:0 3px 2px #08729a;display:flex;align-items:center;justify-content:center;gap:13px;cursor:pointer}
#ow-heal-btn img{width:48px;height:54px;object-fit:contain}#ow-heal-btn:disabled{filter:grayscale(.65);opacity:.72}
.ow-buffs{position:absolute;left:52px;right:52px;top:165px;min-height:48px;display:flex;align-items:stretch;gap:9px;color:#fff;font-size:18px;font-weight:800;white-space:nowrap;text-shadow:0 2px 2px #43268766}.ow-buffs span{min-width:0;flex:1;display:flex;align-items:center;justify-content:center;padding:7px 10px;border:3px solid #e7d7ff;border-radius:24px;background:linear-gradient(135deg,#9362eadf,#6840c9df);box-shadow:inset 0 0 0 3px #ffffff25,0 4px 10px #39247652}.ow-buffs span:only-child{flex:0 0 auto;min-width:310px}

.ow-compass{position:absolute;right:24px;top:438px;width:112px;height:112px;z-index:15;color:#244b70;font:800 23px Arial,sans-serif;text-shadow:0 1px #fff}
.ow-compass svg{position:absolute;inset:14px;width:84px;height:84px;overflow:visible;fill:#d7eff588;stroke:#315d83;stroke-width:4;stroke-linejoin:round;filter:drop-shadow(0 2px 2px #fff)}
.ow-compass svg .needle{fill:#315d83;stroke:#eaffff;stroke-width:2}.ow-compass b{position:absolute;line-height:1}.ow-compass .north{left:47px;top:-3px}.ow-compass .south{left:48px;bottom:-2px}.ow-compass .west{left:-1px;top:46px}.ow-compass .east{right:-1px;top:46px}

#screen-openworld #chat-fab{right:28px;bottom:178px;width:116px;height:116px;z-index:30;filter:drop-shadow(0 8px 14px #27306670)}
#screen-openworld #chat-fab img{transform:scale(1.25)}
#screen-openworld #chat-panel{left:38px;right:38px;top:420px;bottom:170px;border:5px solid #b8ffff;border-radius:38px;background:linear-gradient(145deg,#efffffd9,#b9e9f2c7);-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);box-shadow:inset 0 0 0 6px #ffffff55,inset 0 30px 60px #ffffff38,0 0 18px #4fefff,0 18px 40px #17365366}
#screen-openworld .chat-head{gap:14px;padding:22px 24px 0}
#screen-openworld .chat-tabs{gap:14px}
#screen-openworld .chat-tab{height:66px;padding:0;border:3px solid #ffffffb8;border-radius:23px;background:#e8f5f8c9;color:#34516c;font-size:25px;font-weight:800;box-shadow:0 4px 9px #1c647a29}
#screen-openworld .chat-tab.active{border-color:#d9c5ff;background:linear-gradient(135deg,#a16bff,#7946e8);box-shadow:inset 0 0 0 4px #ffffff24,0 4px 11px #6237ba52;color:#fff}
#screen-openworld #chat-close{width:58px;height:58px;border:3px solid #fff;border-radius:50%;background:#e9f8fbd9;color:#31536f;font-size:24px;box-shadow:0 4px 10px #17495e36}
#screen-openworld #chat-messages{padding:25px 27px}
#screen-openworld .chat-row{gap:15px;margin-bottom:20px}
#screen-openworld .chat-row .cm-avatar{width:66px;height:66px;padding:5px;border:3px solid #fff;background:#d9f5f0;border-radius:50%;box-shadow:0 4px 9px #1b617b38}
#screen-openworld .chat-row .cm-bubble{padding:14px 19px;border:3px solid #ffffffc9;border-radius:25px;background:#f5ffffd9;box-shadow:0 4px 11px #1b617b2e;font-size:23px;line-height:1.4}
#screen-openworld .chat-row.me .cm-bubble{background:#dff6fbd9}
#screen-openworld .chat-row .cm-name{font-size:23px}#screen-openworld .chat-row .cm-time{font-size:17px;margin-left:10px}
#screen-openworld .chat-row .cm-report,#screen-openworld .chat-row .cm-block{padding-left:9px;font-size:20px}
#screen-openworld .chat-row .cm-body{margin-top:5px}
#screen-openworld .chat-row.sys .cm-bubble{background:#e3f4f8d1}
#screen-openworld .chat-empty{padding:60px 20px;color:#496881;font-size:23px;font-weight:700}
#screen-openworld .chat-input-row{gap:14px;padding:18px 24px 25px;border-top:2px solid #ffffff8a;background:linear-gradient(#d9f5fa00,#d9f5fad6)}
#screen-openworld #chat-input{height:66px;padding:0 23px;border:3px solid #fff;border-radius:27px;background:#f5ffffe6;color:#183e61;font-size:23px;box-shadow:inset 0 2px 7px #23677d1f,0 3px 8px #17495e26}
#screen-openworld #chat-input::placeholder{color:#7891a7}
#screen-openworld #chat-emoji-btn,#screen-openworld #chat-send-btn{width:66px;height:66px;box-shadow:0 4px 10px #243b6a42}
#screen-openworld #chat-send-btn{border:3px solid #fff2a4;background:linear-gradient(#ffd96c,#f5a51d)}#screen-openworld #chat-send-btn svg{fill:#5d3400}
#screen-openworld #chat-send-btn svg{width:31px;height:31px}
#screen-openworld .chat-emoji-pop{left:24px;bottom:91px;padding:15px;grid-template-columns:repeat(6,58px);gap:7px;border:3px solid #b8ffff;border-radius:24px;background:#effffff2;box-shadow:0 10px 28px #17365366}
#screen-openworld .chat-emoji-pop button{font-size:32px;padding:8px;border-radius:13px}
/* The map FABs are still readable through the translucent battle backdrop and used to look
   like stray controls trapped behind the Continue panel. Hide them for every Real World
   modal; they return automatically as soon as the modal layer closes. */
body:has(#modal-layer.show .ow-encounter-dialog) #screen-openworld #chat-fab,
body:has(#modal-layer.show .ow-encounter-dialog) #screen-openworld .ow-recenter-btn,
body:has(#modal-layer.show .ow-battle-screen) #screen-openworld #chat-fab,
body:has(#modal-layer.show .ow-battle-screen) #screen-openworld .ow-recenter-btn,
body:has(#modal-layer.show .ow-result-dialog) #screen-openworld #chat-fab,
body:has(#modal-layer.show .ow-result-dialog) #screen-openworld .ow-recenter-btn,
body:has(#modal-layer.show .ow-items-dialog) #screen-openworld #chat-fab,
body:has(#modal-layer.show .ow-items-dialog) #screen-openworld .ow-recenter-btn{visibility:hidden}
.ow-recenter-btn{width:116px;height:116px;margin:0 28px 28px 0;border:5px solid #9dffff;border-radius:50%;background:linear-gradient(145deg,#20d7f0,#057fd5);box-shadow:inset 0 0 0 6px #ffffff38,0 0 15px #58efff,0 8px 16px #154d7770;cursor:pointer;position:relative}
.ow-recenter-btn::before{content:'';position:absolute;inset:14px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23fff' stroke-width='9' stroke-linecap='round'%3E%3Ccircle cx='50' cy='50' r='24'/%3E%3Cpath d='M50 5v19M50 76v19M5 50h19M76 50h19'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='5' fill='%23fff'/%3E%3C/svg%3E");filter:drop-shadow(0 2px 2px #176c9d)}
.ow-recenter-btn::after{content:none}

/* Encounter card */
#modal-layer:has(.ow-encounter-dialog),#modal-layer:has(.ow-battle-screen),#modal-layer:has(.ow-result-dialog){padding:0;background:#173e6070;backdrop-filter:grayscale(.2) brightness(.72)}
.dialog.ow-encounter-dialog{position:relative;flex:0 0 auto;width:846px;max-width:none;max-height:none;padding:37px 49px 48px;border:5px solid #a4ffff;border-radius:55px;background:linear-gradient(145deg,rgba(239,255,255,.72),rgba(167,224,240,.58));-webkit-backdrop-filter:blur(10px) saturate(1.25);backdrop-filter:blur(10px) saturate(1.25);box-shadow:inset 0 0 0 7px #ffffff70,inset 0 34px 55px #ffffff3d,inset 0 -24px 44px #32b7cf21,0 0 22px #78f7ff,0 24px 60px #082c4e99;color:#123c67;overflow:visible;transform:scale(var(--map-scale));animation:ow-pop .18s ease}
.ow-encounter-dialog>*:not(.ow-encounter-corner){position:relative;z-index:1}
.ow-encounter-corner{position:absolute;z-index:0;width:174px;height:174px;pointer-events:none;opacity:.24;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 150'%3E%3Cg fill='%2327aaa5'%3E%3Cpath d='M10 143C35 99 59 57 126 17l5 8C70 61 43 100 19 148z' opacity='.7'/%3E%3Cellipse cx='36' cy='109' rx='14' ry='28' transform='rotate(-45 36 109)'/%3E%3Cellipse cx='58' cy='82' rx='13' ry='27' transform='rotate(-47 58 82)'/%3E%3Cellipse cx='83' cy='57' rx='12' ry='25' transform='rotate(-50 83 57)'/%3E%3Cellipse cx='107' cy='36' rx='11' ry='23' transform='rotate(-54 107 36)'/%3E%3Cellipse cx='52' cy='119' rx='12' ry='25' transform='rotate(40 52 119)'/%3E%3Cellipse cx='76' cy='91' rx='11' ry='24' transform='rotate(38 76 91)'/%3E%3Cellipse cx='100' cy='66' rx='10' ry='22' transform='rotate(35 100 66)'/%3E%3C/g%3E%3C/svg%3E")}.ow-encounter-corner.tl{left:15px;top:15px}.ow-encounter-corner.tr{right:15px;top:15px;transform:scaleX(-1)}.ow-encounter-corner.bl{left:15px;bottom:15px;transform:scaleY(-1)}.ow-encounter-corner.br{right:15px;bottom:15px;transform:scale(-1)}
.ow-encounter-name{margin:5px 0 12px;text-align:center;color:#082d58;font:800 48px/1.1 Arial,sans-serif;text-shadow:0 2px #fff}
.ow-rarity-pill{width:max-content;min-width:210px;margin:0 auto 20px;padding:8px 25px;border:4px solid #f3ddff;border-radius:32px;background:linear-gradient(#a049e9,#6c25bd);box-shadow:0 0 18px #a54fff99;color:#fff;font-size:30px;font-weight:800;text-align:center}
.ow-rarity-pill.common{background:linear-gradient(#6b9bb2,#376a87)}.ow-rarity-pill.rare{background:linear-gradient(#3da9f3,#1866c1)}.ow-rarity-pill.legendary,.ow-rarity-pill.boss{background:linear-gradient(#ffcf4f,#e97a13)}
.ow-encounter-meta{display:grid;grid-template-columns:.8fr 1fr 1.18fr;gap:14px;margin-bottom:18px}.ow-encounter-meta span{height:70px;display:flex;align-items:center;justify-content:center;border:3px solid #fff;border-radius:27px;background:#e9fbffb8;box-shadow:0 3px 7px #1a65832f;font-size:25px;font-weight:800;white-space:nowrap}
.ow-encounter-art{height:390px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,#d8c5ff80 0,#fff0 65%)}.ow-encounter-art img{width:390px;height:390px;object-fit:contain;filter:drop-shadow(0 16px 14px #4a32765c)}
.ow-encounter-stats{width:500px;height:66px;margin:2px auto 22px;display:flex;align-items:center;justify-content:center;border:3px solid #fff;border-radius:27px;background:#eaffffc7;font-size:25px;font-weight:800;letter-spacing:1px}
.ow-encounter-boss{margin:-8px 0 14px}.ow-encounter-boss .bt-hp{display:flex;align-items:center;gap:12px}.ow-encounter-boss .bar{flex:1}.ow-encounter-boss .bar{height:24px}.ow-encounter-boss .bt-hpval{margin:0;font-size:26px;font-weight:800;white-space:nowrap;color:#0c2c60}
/* User report 2026-09-12: the per-player boss-damage contribution list (#ow-pop-contrib)
   inherited the old compact .bt-stats size (.72rem, ~11.5px) meant for the small PvP header
   line — unreadable at this screen's much larger scale. Bump it to match the surrounding
   encounter-card text instead of the shared .bt-stats default. */
#ow-pop-contrib{font-size:22px;line-height:1.6;color:#103b67}
.ow-encounter-actions{display:grid;grid-template-columns:1fr 1.08fr;gap:20px}.ow-encounter-actions button{height:105px;margin:0;border:4px solid #fff;border-radius:42px;font:800 36px Arial,sans-serif;cursor:pointer}.ow-encounter-close{background:linear-gradient(#efffff,#bae7f3);color:#16486f;box-shadow:0 6px 10px #1e6d8747}.ow-encounter-fight{position:relative;overflow:hidden;border-color:#fff4a3!important;background:linear-gradient(#ffe56a,#ffae19);color:#54320a;box-shadow:inset 0 0 0 6px #ffffff4a,0 6px 12px #bd74185e}.ow-encounter-fight::before,.ow-encounter-fight::after{content:'';position:absolute;bottom:7px;width:82px;height:40px;opacity:.43;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 44'%3E%3Cg fill='%23fff1a0'%3E%3Cpath d='M4 39C25 29 42 18 63 3l4 5C47 24 29 35 7 43z'/%3E%3Cellipse cx='24' cy='30' rx='7' ry='14' transform='rotate(-55 24 30)'/%3E%3Cellipse cx='43' cy='19' rx='6' ry='13' transform='rotate(-50 43 19)'/%3E%3Cellipse cx='34' cy='34' rx='6' ry='13' transform='rotate(42 34 34)'/%3E%3Cellipse cx='54' cy='23' rx='6' ry='12' transform='rotate(39 54 23)'/%3E%3C/g%3E%3C/svg%3E")}.ow-encounter-fight::before{left:18px}.ow-encounter-fight::after{right:18px;transform:scaleX(-1)}.ow-encounter-fight:disabled{filter:grayscale(.7);opacity:.64}

/* Pre-battle potion picker */
#modal-layer:has(.ow-items-dialog){padding:0;background:#173e6070;backdrop-filter:grayscale(.15) brightness(.72)}
.dialog.ow-items-dialog{position:relative;flex:0 0 auto;width:820px;max-width:none;max-height:1310px;padding:38px 42px 42px;border:5px solid #a4ffff;border-radius:52px;background:linear-gradient(145deg,#efffffe3,#b6e9f3d4);-webkit-backdrop-filter:blur(13px) saturate(1.25);backdrop-filter:blur(13px) saturate(1.25);box-shadow:inset 0 0 0 7px #ffffff62,inset 0 34px 58px #ffffff38,0 0 22px #78f7ff,0 24px 60px #082c4e99;color:#123c67;overflow:hidden;transform:scale(var(--map-scale));animation:ow-pop .18s ease}
.ow-items-title{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:20px;color:#103d68;font:800 43px/1 Arial,sans-serif;text-shadow:0 2px #fff}.ow-items-title img{width:65px;height:72px;object-fit:contain;filter:drop-shadow(0 5px 5px #17536f47)}
.ow-items-hp{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:15px;height:76px;padding:0 25px;border:3px solid #fff;border-radius:30px;background:#efffffcf;box-shadow:0 4px 10px #1c647a2e;font-size:25px}.ow-items-hp span{color:#e54847;font-weight:900}.ow-items-hp b{white-space:nowrap}.ow-items-hp .bar{height:22px;border:2px solid #ffffffc9}
.ow-items-preview{margin:14px auto 8px;width:max-content;padding:7px 20px;border-radius:18px;background:#7045d9;color:#fff;font-size:18px;font-weight:800;letter-spacing:.5px}
.ow-items-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:18px;max-height:840px;padding:2px;overflow-y:auto}
.ow-item-card{min-height:205px;padding:17px;display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:1fr 60px;gap:9px 14px;border:3px solid #fff;border-radius:30px;background:linear-gradient(140deg,#f3ffffdc,#caeef5cf);box-shadow:inset 0 0 0 4px #ffffff26,0 5px 11px #1b617b31}.ow-item-card.heal{border-color:#ffc9d4}.ow-item-card.buff{border-color:#d7c8ff}.ow-item-card.summon{border-color:#ffcf5a;background:linear-gradient(140deg,#fff6dcdc,#ffe0a0cf)}.ow-item-card.summon .ow-item-copy b{white-space:normal;line-height:1.05}.ow-item-art{grid-row:1/3;width:112px;height:126px;align-self:center;object-fit:contain;filter:drop-shadow(0 8px 7px #23465e40)}
.ow-item-copy{min-width:0;align-self:center}.ow-item-copy b{display:block;font-size:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ow-item-copy span{display:block;margin-top:5px;color:#53708a;font-size:18px;font-weight:700;line-height:1.25}.ow-item-copy em{display:inline-block;margin-top:8px;padding:4px 12px;border-radius:14px;background:#348cb5;color:#fff;font-size:17px;font-style:normal;font-weight:800}
.ow-item-use{height:57px;border:3px solid #fff4a3;border-radius:24px;background:linear-gradient(#ffe56a,#ffae19);box-shadow:inset 0 0 0 4px #ffffff42,0 4px 8px #bd74184a;color:#54320a;font:800 23px Arial,sans-serif;cursor:pointer}
.ow-items-dialog>.dlg-row{margin-top:20px}
.ow-wl-note{margin:0 6px 18px;color:#24557f;font:700 23px/1.4 Arial,sans-serif;text-align:center}.ow-wl-note.small{margin:16px 6px 0;font-size:20px;color:#4a6f8f}
.ow-wl-wrap{position:relative}
.ow-wl-list{display:flex;flex-direction:column;gap:12px;max-height:760px;overflow-y:auto;padding:4px 34px 4px 4px;scrollbar-width:none}.ow-wl-list::-webkit-scrollbar{display:none}
.ow-scroll{position:absolute;right:0;top:4px;bottom:4px;width:18px;border-radius:14px;background:rgba(5,70,112,.65)}.ow-scroll[hidden]{display:none}
.ow-scroll i{position:absolute;left:2px;top:2px;width:14px;border-radius:14px;background:#e6ffff;box-shadow:0 0 8px #fff;cursor:grab;touch-action:none}
.ow-wl-row{display:flex;align-items:center;gap:18px;padding:14px 18px;border:3px solid #ffffffc0;border-radius:28px;background:#ffffff8c;box-shadow:0 3px 8px #1e6d8726}
.ow-wl-row.on{border-color:#514bf4;background:#eeedffe6}
.ow-wl-row>b{flex:0 0 170px;color:#3d37c9;font:800 28px Arial,sans-serif;white-space:nowrap}
.ow-wl-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;color:#23486b;font:700 20px Arial,sans-serif}.ow-wl-info .good{color:#15933c}
.ow-wl-row .ow-item-use{flex:0 0 140px}.ow-wl-row .ow-item-use:disabled{filter:grayscale(.6);opacity:.75;cursor:default}.ow-items-close{width:100%;height:83px;border:3px solid #fff;border-radius:32px;background:linear-gradient(#efffff,#bae7f3);box-shadow:0 5px 10px #1e6d8747;color:#16486f;font:800 28px Arial,sans-serif;cursor:pointer}

/* Real World battle replay */
.dialog.ow-battle-screen{position:relative;flex:0 0 auto;width:886px;max-width:none;height:1220px;max-height:none;padding:34px 28px 31px;border:5px solid #a4ffff;border-radius:55px;background:linear-gradient(180deg,#128cadf5 0 16%,#b6edf6f5 35%,#a9e7eff5 100%);box-shadow:inset 0 0 0 7px #ffffff3a,0 0 22px #78f7ff,0 24px 60px #082c4e99;color:#103b67;overflow:hidden;transform:scale(var(--map-scale));animation:ow-pop .18s ease}
.ow-battle-heading{text-align:center;color:#fff;font:800 47px/1 Arial,sans-serif;text-shadow:0 4px 2px #155d94}.ow-battle-heading small{display:block;margin:17px auto 22px;color:#d2f8ff;font-size:28px;text-shadow:none}.ow-battle-heading small::before,.ow-battle-heading small::after{content:'';display:inline-block;width:110px;height:3px;margin:0 20px 8px;background:#9cebf0}
.ow-battle-statuses{position:relative;z-index:3;display:grid;grid-template-columns:1fr 1fr;gap:86px}.ow-battle-card{height:166px;padding:18px 18px;display:grid;grid-template-columns:91px 1fr;grid-template-rows:auto auto 16px;column-gap:16px;border:4px solid #fff;border-radius:30px;background:linear-gradient(135deg,#f0ffffee,#b9edf5ee);box-shadow:0 5px 12px #1765805c}.ow-battle-card img{grid-row:1/4;width:91px;height:91px;align-self:center;object-fit:contain;border:4px solid #fff;border-radius:50%;background:#d7fff4}.ow-battle-card b{align-self:end;font-size:27px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ow-battle-card span{font-size:24px;font-weight:700}.ow-battle-card .bar{align-self:center;height:17px}.ow-battle-card .bar-fill{transition:width .35s ease}.ow-battle-card.monster img{background:#d9ccff}.ow-battle-card.monster .bar-fill{background:linear-gradient(90deg,#09ad56,#25dc7a)}
.ow-battle-vs{position:absolute;left:50%;top:201px;z-index:4;transform:translateX(-50%);color:#fff;font:800 58px Arial,sans-serif;text-shadow:0 4px 2px #137dad,0 0 15px #59efff}
.ow-battle-arena{position:absolute;left:28px;right:28px;top:300px;height:700px;border:4px solid #d8ffff;border-radius:36px;background:url('assets/battle/pve-forest-arena-v1.png') center/cover no-repeat;overflow:hidden;box-shadow:inset 0 0 35px #0b6d9670}.ow-battle-arena::after{content:'';position:absolute;inset:0;background:linear-gradient(#0b65872c,#d8ffff12 60%,#0d68885c);pointer-events:none}.ow-battle-fighter{position:absolute;z-index:2;display:flex;align-items:flex-end;justify-content:center}.ow-battle-fighter img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 10px #0f375b69)}.ow-battle-fighter.player{left:45px;bottom:35px;width:350px;height:470px}.ow-battle-fighter.monster{right:25px;top:80px;width:405px;height:430px}.ow-battle-fighter.monster img{transform:scaleX(-1)}
.ow-battle-screen .bt-log{position:absolute;left:47px;right:47px;bottom:38px;z-index:5;min-height:100px;padding:28px 35px;border:4px solid #fff;border-radius:32px;background:linear-gradient(125deg,#e8ffffee,#b9e8f3ee);box-shadow:0 5px 12px #1765805c;color:#153f68;font-size:29px;font-weight:800;text-align:left}.ow-battle-screen .bt-log::before{content:'⚔';margin-right:22px;color:#1d72aa;font-size:38px}.ow-battle-screen>.dlg-row{position:absolute;left:47px;right:47px;bottom:38px;z-index:8;margin:0}.ow-battle-screen>.dlg-row button{width:100%;height:100px;border:4px solid #fff4a3;border-radius:42px;background:linear-gradient(#ffe56a,#ffae19);color:#54320a;font:800 34px Arial,sans-serif;box-shadow:inset 0 0 0 6px #ffffff4a,0 6px 12px #bd74185e}.ow-battle-screen>.dlg-row:has(button[style*="display: none"]){pointer-events:none}

.dialog.ow-result-dialog{flex:0 0 auto;width:760px;max-width:none;padding:40px;border:5px solid #9effff;border-radius:50px;background:linear-gradient(145deg,#eafffff5,#b9eaf2f5);box-shadow:0 0 22px #78f7ff,0 24px 60px #082c4e99;color:#123c67;transform:scale(var(--map-scale));overflow:visible}.ow-result-dialog .dlg-title{font-size:46px;color:#0b75a0;text-shadow:0 2px #fff}.ow-result-dialog .bt-log{margin:22px 0;font-size:25px;line-height:1.55;background:#eaffffb8;border:3px solid #fff;border-radius:28px}.ow-result-dialog>.btn-primary{height:94px;border:4px solid #fff4a3;border-radius:42px;background:linear-gradient(#ffe56a,#ffae19);color:#54320a;font:800 32px Arial,sans-serif}

@keyframes ow-pop{from{transform:scale(calc(var(--map-scale) * .9));opacity:0}to{transform:scale(var(--map-scale));opacity:1}}
@media(prefers-reduced-motion:reduce){#screen-openworld *,#modal-layer .ow-encounter-dialog,#modal-layer .ow-battle-screen,#modal-layer .ow-result-dialog{animation:none!important;transition:none!important}}
