/* Compact wave progression and public player profiles */
.map-hud .wave-progress{margin-top:7px;padding-top:7px;border-top:1px solid #6795a54f;min-width:0}.wave-progress-label{display:flex;justify-content:space-between;gap:8px;font-size:11px;line-height:1.3}.wave-progress-label small{color:#f698a0;font-size:10px}.wave-progress-dots{display:flex;gap:5px;margin-top:6px}.wave-progress-dots button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;height:9px;border:1px solid #68899a;border-radius:4px;background:#142c3a;color:#e6ffff;font-style:normal;font-size:9px}.wave-progress-dots button.completed{background:#27748a;border-color:#49a8b9}.wave-progress-dots button.current{background:#4ce5e3;border-color:#beffff;box-shadow:0 0 7px #41ddddb3;color:#062534}.wave-progress-dots button.boss{background:#63303d;border-color:#d66a77;color:#ffd5d9}.wave-progress-dots button.boss.current{background:#d13951;box-shadow:0 0 9px #e54861}
.own-profile-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:5px;border:1px solid #64889a;border-radius:8px;background:linear-gradient(#234759,#0b2232);cursor:pointer}.own-profile-button img{width:25px;height:25px;object-fit:contain}.own-profile-button:hover{border-color:#75e4ef;box-shadow:0 0 9px #47c9dc60}
.game-chat .chat-messages>p:not(.chat-empty):nth-child(odd){background:#123242!important}.game-chat .chat-messages>p:not(.chat-empty):nth-child(even){background:#0b2433!important}.game-chat .chat-messages>p:not(.chat-empty){padding:7px 8px!important;margin:3px 0!important;border-radius:6px;border-left:2px solid #3c697c!important;line-height:1.5}.game-chat .chat-messages>p.own-message{border-left-color:#64d3c5!important}.game-chat .chat-messages>p.system-message{border-left-color:#d7b067!important}.chat-messages [data-player-profile]{cursor:pointer;color:#8ae2f4}.chat-messages [data-player-profile]:hover{text-decoration:underline;color:#c6faff}.chat-messages [data-player-profile]:focus-visible{outline:1px solid #8ae2f4}
.player-profile-dialog{box-sizing:border-box;width:min(700px,94vw);max-height:85dvh;padding:20px;color:#d7eaf1;border:1px solid #7db3c6;border-radius:13px;background:radial-gradient(ellipse at top,#1b4154,#081d2b 75%);box-shadow:0 0 28px #37bec237;overflow:auto}.player-profile-dialog::backdrop{background:#020d19b8;backdrop-filter:blur(4px)}.player-profile-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #5c92a6;padding-bottom:12px;margin-bottom:14px}.player-profile-dialog h2{margin:3px 0;font-size:23px}.player-profile-dialog small{color:#96c2d0;font-size:11px}.player-profile-dialog [data-profile-close]{flex:none;width:32px;height:32px;border:1px solid #e48d96;background:linear-gradient(#944552,#5e2331);border-radius:7px;color:#ffe4e7;font-size:25px;cursor:pointer}.profile-character-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.profile-character-grid article{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #4f8295;border-radius:9px;background:#102e3f}.profile-character-grid img{width:65px;height:78px;object-fit:cover;border-radius:7px;border:1px solid #77a6b7}.profile-character-grid h3{margin:0 0 7px;font-size:17px}.profile-character-grid h3 small{display:block;color:#8ae2cb;margin-top:3px}.profile-character-grid b{font-size:12px;color:#bfe9f4}.profile-character-grid p{font-size:12px;margin:7px 0;overflow-wrap:anywhere}

/* Header profile is a direct sibling of the utility group: always after coupons. */
body.arcane-layout #arcane-header #arcane-header-tools>.own-profile-button{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;width:80px!important;min-width:80px!important;height:35px!important;padding:5px 9px!important;border-color:#6cb3c5!important;box-shadow:inset 0 1px 0 #b6f2ff25,0 0 9px #2fcbd31c;background:linear-gradient(#24526a,#102b3d)!important;color:#dbf4ff;font:inherit;font-size:12px;font-weight:700;white-space:nowrap}body.arcane-layout #arcane-header-tools>.own-profile-button:hover{border-color:#a2f2fa!important;background:linear-gradient(#287487,#164358)!important}body.arcane-layout #arcane-header-tools>.own-profile-button img{width:22px!important;height:22px!important}
dialog.player-profile-dialog{width:min(740px,94vw)!important;max-width:94vw!important;max-height:88dvh!important;height:auto!important;inset:0!important;margin:auto!important;padding:18px!important;border:1px solid #83b9c9!important;background:radial-gradient(ellipse at 50% 0,#1a4258 0,#0b2638 48%,#071b29 100%)!important;color:#dcecf4!important;box-shadow:0 18px 70px #000b,inset 0 0 0 3px #132f40,0 0 22px #4bbccc26!important}.player-profile-dialog>header{padding:0 0 12px!important}.player-profile-dialog h2{font-size:25px;letter-spacing:.3px}.player-profile-dialog h2 small{display:inline-block;font-size:9px;padding:3px 5px;border:1px solid #488b8e;border-radius:4px;color:#9ce2cf;vertical-align:middle}.player-profile-dialog .profile-spotlight{display:flex;align-items:center;gap:22px;border:1px solid #578b9f;border-radius:10px;overflow:hidden;background:radial-gradient(ellipse at 0% 50%,#24637b88,transparent 65%),linear-gradient(110deg,#13374a,#0a2031);min-height:150px}.profile-spotlight-art{align-self:stretch;width:155px;flex:none;position:relative;background:radial-gradient(ellipse,#44b7d93b,transparent 70%)}.profile-spotlight-art img{display:block;width:155px;height:160px;object-fit:cover;object-position:50% 20%;mask-image:linear-gradient(90deg,#000 78%,transparent)}.profile-spotlight-info{padding:14px 14px 14px 0;min-width:0}.profile-spotlight-info .profile-tag{font-size:9px;color:#78d4de;letter-spacing:1px}.profile-spotlight-info h3{margin:6px 0;font-size:29px;color:#f1f8fd}.profile-spotlight-info .profile-level{font-size:15px;color:#e5f6ff}.profile-level span{color:#83e1e5}.profile-spotlight-info p{font-size:12px;color:#b5cedb;margin:10px 0 0;overflow-wrap:anywhere}.profile-summary-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 18px}.profile-summary-stats>div{display:flex;flex-direction:column;gap:5px;padding:10px 12px;border:1px solid #426e84;border-radius:7px;background:linear-gradient(#173b50,#0d283a)}.profile-summary-stats b{color:#b6ecf3;font-size:20px}.profile-summary-stats small{font-size:10px}.profile-roster-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;border-bottom:1px solid #416a80;padding-bottom:8px}.profile-roster-heading h3{margin:0;font-size:17px}.profile-character-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-character-grid article{align-items:flex-start;gap:9px;padding:10px;min-width:0}.profile-character-grid article>div{min-width:0}.profile-character-grid img{width:42px;height:49px;flex:none}.profile-character-grid h3{font-size:14px;margin-bottom:6px}.profile-character-grid b{font-size:10px}.profile-character-grid p{font-size:10px;line-height:1.4}.profile-character-grid small{font-size:9px}.player-profile-dialog [data-profile-close]{background:linear-gradient(#a54858,#632333)!important;border-color:#df8d98!important;color:#ffe4e8!important}.player-profile-dialog [data-profile-close]:hover{background:#ae354d!important}@media(max-width:600px){.profile-character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-spotlight-art,.profile-spotlight-art img{width:110px}.profile-spotlight-info h3{font-size:24px}.profile-summary-stats>div{padding:8px}.profile-summary-stats b{font-size:17px}.player-profile-dialog .profile-spotlight{gap:10px}}

/* Override the legacy 94px/88px clipping box, including the mobile rule. */
body.arcane-layout #arcane-shell #battlefield .map-hud{height:auto!important;min-height:132px!important;max-height:none!important;overflow:visible!important;padding-bottom:10px!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress{display:block!important;position:relative!important;width:100%!important;box-sizing:border-box!important;margin:7px 0 0!important;padding:7px 0 0!important;overflow:visible!important;border-top:1px solid #7197aa60!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-label{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:5px!important;line-height:14px!important;margin-bottom:5px!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-label span{font-size:10px!important;color:#d9f4fc!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-label small{font-size:9px!important;color:#ff9ba8!important;line-height:14px!important;white-space:nowrap!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:3px!important;margin:0!important;width:100%!important;overflow:visible!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button{display:flex!important;align-items:center!important;justify-content:center!important;height:18px!important;min-height:18px!important;box-sizing:border-box!important;border-radius:4px!important;font:700 9px/1 Arial,sans-serif!important;font-style:normal!important;color:#a7c8d8!important;background:#102b3d!important;border:1px solid #4c7289!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button.completed{background:#205266!important;border-color:#448fa4!important;color:#c3e9ec!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button.current{background:#49d6df!important;border-color:#c0ffff!important;color:#062c3d!important;box-shadow:0 0 7px #3ee1ec88!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button.boss{background:#63283a!important;border-color:#e2798a!important;color:#ffc4cf!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button.boss.current{background:#c93852!important;border-color:#ffb9c6!important;color:white!important;box-shadow:0 0 8px #f2486888!important}
@media(max-width:650px){body.arcane-layout #arcane-shell #battlefield .map-hud{min-height:128px!important}body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots{gap:2px!important}body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button{font-size:8px!important}}

/* Chat: blue surfaces, neutral own-message treatment and stable player colors. */
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat .chat-messages>p:not(.chat-empty){border:1px solid #43647e45!important;border-left:2px solid #527690!important;padding:8px 9px!important;margin:0 0 5px!important;border-radius:7px!important;box-shadow:none!important;color:#d7e3ef!important;line-height:1.55!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat .chat-messages>p:not(.chat-empty):nth-child(odd){background:#142b40!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat .chat-messages>p:not(.chat-empty):nth-child(even){background:#0c2033!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat .chat-messages>p.own-message{border-left-color:#86a6cb!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat .chat-messages>p.system-message{border-left-color:#c2ab78!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat .chat-messages .chat-player-name{color:var(--player-nick-color,#ddc491)!important;font-size:11px!important;font-weight:700!important;text-shadow:none!important;margin-right:3px}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat .chat-messages [data-player-profile]:hover{filter:brightness(1.12);text-decoration:underline;text-underline-offset:3px}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat .chat-messages p>span{color:#d4e0ee!important;font-size:11px!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat .chat-messages p time{color:#7f9ab4!important;font-size:9px!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat .chat-channel-badge{color:#abc5df!important;background:#29465f!important;border:1px solid #47658055!important;border-radius:3px!important;font-size:8px!important;padding:1px 4px!important;margin-right:5px!important;box-shadow:none!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat #chat-send{background:#0c1e30!important;border:1px solid #44617e!important;box-shadow:none!important;padding:4px!important;border-radius:8px!important;transition:border-color .15s,box-shadow .15s}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat #chat-send:focus-within{background:#10253a!important;border-color:#83a9d5!important;box-shadow:0 0 0 2px #658db524!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat #chat-send input,body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat #chat-send input:focus{background:transparent!important;border:0!important;color:#e0eaf5!important;outline:none!important;box-shadow:none!important;caret-color:#bddcff!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat #chat-send input::placeholder{color:#879eb7!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat #chat-send button{background:linear-gradient(#304e6b,#1a344f)!important;border:1px solid #6687a6!important;color:#e5effb!important;box-shadow:inset 0 1px #d4eaff17!important}
body.arcane-layout #arcane-shell #arcane-chat-panel .game-chat #chat-send button:hover{background:linear-gradient(#3b6184,#244767)!important;border-color:#9bbde0!important}

/* Three exclusive farming modes and a lighter connected wave path. */
body.arcane-layout #arcane-shell #arcane-main #battlefield .expedition-flow-controls{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:5px!important;width:max-content!important;max-width:calc(100% - 20px)!important;bottom:14px!important;padding:4px!important;border:1px solid #668ba95c;border-radius:23px;background:#081b2bc9;backdrop-filter:blur(5px)}
body.arcane-layout #arcane-shell #arcane-main #battlefield .expedition-flow-controls button{min-height:33px!important;min-width:0!important;padding:6px 13px!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;border-radius:18px!important;margin:0!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots{position:relative!important;align-items:center!important;justify-items:center!important;gap:1px!important;height:24px!important;background:linear-gradient(#42617c,#42617c) center/90% 1px no-repeat!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button{width:9px!important;height:9px!important;min-height:0!important;border-radius:50%!important;background:#14283b!important;border-color:#64819c!important;font-size:7px!important;box-shadow:0 0 0 3px #10283b!important;z-index:1}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button.completed{width:12px!important;height:12px!important;background:#31556c!important;color:#bce0ed!important;border-color:#7199b2!important;font-size:8px!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button.current{width:21px!important;height:21px!important;background:radial-gradient(#22546e,#123c53)!important;border:2px solid #83e8fa!important;color:#dcfaff!important;font-size:10px!important;box-shadow:0 0 0 3px #10283b,0 0 9px #54bedd80!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button.boss{width:19px!important;height:19px!important;border-radius:6px!important;background:linear-gradient(#693448,#3d2032)!important;border-color:#d97a90!important;color:#ffa4b7!important;font-size:12px!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button.boss.current{width:21px!important;height:21px!important;border-color:#ffc5d1!important;background:linear-gradient(#b94562,#6d263d)!important;color:#fff1f4!important;box-shadow:0 0 0 3px #10283b,0 0 9px #e9506b88!important}
body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-label{margin-bottom:2px!important}
@media(max-width:650px){body.arcane-layout #arcane-shell #arcane-main #battlefield .expedition-flow-controls button{font-size:10px!important;padding:6px 9px!important;min-height:30px!important}}

/* Inventory-style character banner, using the exact shared character artwork. */
dialog.player-profile-dialog .profile-spotlight{position:relative!important;isolation:isolate!important;display:flex!important;align-items:center!important;min-height:104px!important;height:104px!important;gap:12px!important;padding:12px!important;box-sizing:border-box!important;background:#071b2b!important;border:1px solid #6b98ad!important;border-radius:9px!important;overflow:hidden!important}
dialog.player-profile-dialog .profile-spotlight::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#071b2bfa 0%,#071b2bda 28%,#071b2b66 55%,#071b2b15 100%),var(--profile-hero-art) right 32%/cover no-repeat;opacity:.88;pointer-events:none}
dialog.player-profile-dialog .profile-spotlight .profile-spotlight-art{position:relative!important;align-self:center!important;width:48px!important;height:55px!important;flex:0 0 48px!important;background:none!important}
dialog.player-profile-dialog .profile-spotlight .profile-spotlight-art img{display:block!important;width:48px!important;height:55px!important;object-fit:cover!important;object-position:center!important;mask-image:none!important;border:1px solid #8bb1c3!important;border-radius:7px!important;box-shadow:0 2px 8px #0007}
dialog.player-profile-dialog .profile-spotlight .profile-spotlight-info{padding:0!important;min-width:0!important;max-width:72%!important;text-shadow:0 1px 4px #000!important}
dialog.player-profile-dialog .profile-spotlight .profile-tag{font-size:8px!important;letter-spacing:.7px!important;color:#a0c6d8!important}
dialog.player-profile-dialog .profile-spotlight h3{font-size:24px!important;line-height:1.1!important;margin:4px 0!important}
dialog.player-profile-dialog .profile-spotlight .profile-level{font-size:12px!important;line-height:1.4!important}
dialog.player-profile-dialog .profile-spotlight .profile-spotlight-info p{margin:4px 0 0!important;font-size:11px!important;line-height:1.3!important}
/* Use a centered SVG instead of the font glyph affected by global button styles. */
dialog.player-profile-dialog>header>button[data-profile-close]{position:static!important;inset:auto!important;transform:none!important;display:grid!important;place-items:center!important;align-self:center!important;flex:0 0 32px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;padding:0!important;margin:0!important;box-sizing:border-box!important;font-size:0!important;line-height:1!important;overflow:hidden!important;border-radius:7px!important;background:linear-gradient(#a44759,#612132)!important;border:1px solid #de8b9b!important;color:#ffe5ed!important;text-indent:0!important}
dialog.player-profile-dialog>header>button[data-profile-close]>svg{position:static!important;display:block!important;width:16px!important;height:16px!important;min-width:0!important;margin:0!important;padding:0!important;transform:none!important;pointer-events:none!important}
dialog.player-profile-dialog>header>button[data-profile-close]:hover{background:linear-gradient(#bb5066,#822d44)!important}
dialog.player-profile-dialog>header>button[data-profile-close]:focus-visible{outline:2px solid #ffbecf!important;outline-offset:3px!important}
@media(max-width:500px){dialog.player-profile-dialog .profile-spotlight{height:100px!important;min-height:100px!important;padding:9px!important;gap:9px!important}dialog.player-profile-dialog .profile-spotlight h3{font-size:21px!important}}

/* Show more of the original character art instead of stretching it across the banner. */
dialog.player-profile-dialog .profile-spotlight::before{background-image:linear-gradient(90deg,#071b2b 0%,#071b2be0 30%,#071b2b50 65%,#071b2b15 100%),var(--profile-hero-art)!important;background-size:100% 100%,auto 250%!important;background-position:center,88% 32%!important;background-repeat:no-repeat!important;opacity:.92!important}
@media(max-width:500px){dialog.player-profile-dialog .profile-spotlight::before{background-size:100% 100%,auto 220%!important;background-position:center,right 32%!important}}

body.arcane-layout #arcane-shell #battlefield .map-hud .wave-progress-dots button{
 width:20px!important;height:21px!important;min-height:0!important;padding:0!important;
 border-radius:6px!important;font-size:10px!important;cursor:pointer;pointer-events:auto;
}
.wave-progress-dots button:disabled{cursor:default!important;opacity:.55}
.wave-progress-dots button:focus-visible{outline:2px solid #b5f6ff;outline-offset:2px}
.wave-progress-dots button img{display:block;width:16px;height:16px;pointer-events:none}
