.dofus3-scene .auth-shell__rail,.dofus3-scene.loading-screen.loading-screen,.dofus3-scene [data-name=ctr_characterSelection]{
 --highlight_primary100:#9ce8dd!important;--highlight_primary80:rgba(156,232,221,.8)!important;--highlight_primary50:rgba(156,232,221,.5)!important;--highlight_primary25:rgba(156,232,221,.25)!important;
 --background_dark100:#0b202b!important;--background_dark95:rgba(11,32,43,.95)!important;--background_dark80:rgba(11,32,43,.8)!important;--background_medium100:#203e4a!important;--background_medium90:rgba(32,62,74,.9)!important;
}
.dofus3-scene .auth-shell__rail{background:rgba(6,23,32,.36)!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.dofus3-scene .auth-shell__rail-fill{opacity:.34!important;background:#091e2b!important}
.auth-shell-bg .auth-shell-bg__rail-scrim{background:linear-gradient(90deg,rgba(5,22,30,.48),rgba(5,22,30,.22) 58%,transparent)!important}
.dofus3-scene .auth-shell__rail-edge{background:linear-gradient(180deg,transparent,rgba(125,231,219,.45) 22% 78%,transparent)!important}
.dofus3-scene .auth-shell__rail,.dofus3-scene .auth-shell__rail [class*=textShort],.dofus3-scene .auth-shell__rail [class*=textLong],.dofus3-scene .auth-shell__rail input,.dofus3-scene .auth-shell__rail label,.dofus3-scene .auth-shell__rail button,.dofus3-scene.loading-screen .loading-screen__dock{font-family:Lexend-Regular,'Segoe UI',sans-serif!important}
.dofus3-scene .auth-shell__heading *{font-family:Rowdies-Regular,Lexend-Regular,sans-serif!important;letter-spacing:.03em}
.dofus3-scene .auth-shell__rail .textColor_highlight_primary100{color:#b5f0e4!important}
.dofus3-scene .auth-shell__rail input{color:#effbf7!important;caret-color:#9ce8dd}
.dofus3-scene .auth-shell__meta .game-language-selector__choice{border-color:rgba(140,219,211,.35)!important}
.dofus3-scene .auth-shell__meta .game-language-selector__choice[aria-pressed=true]{box-shadow:0 0 0 1px #93e7db!important;background:rgba(35,98,108,.6)!important}
.emu-charsel-bg .dofus3-login-bg__layer[data-layer-name=dotruz_background]{background-image:url('/core/dofus3/login-background/arkafus-background.jpg')!important}
#arkafus-admin{color:#e1f3ef;background:#0d2530;border:1px solid #4d9c9b;border-radius:12px;box-shadow:0 18px 80px #000b;padding:22px;width:1120px;max-width:94vw;height:780px;max-height:90vh;font:13px Lexend-Regular,'Segoe UI',sans-serif;z-index:2147483647}
#arkafus-admin::backdrop{background:#020e16a6;backdrop-filter:blur(3px)}
#arkafus-admin *{box-sizing:border-box}#arkafus-admin h2{color:#b1ebdf;font-size:21px;margin:0}#arkafus-admin header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}#arkafus-admin .admin-body{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;height:calc(100% - 110px)}
#arkafus-admin aside{overflow:auto;border-right:1px solid #30525b;padding-right:18px}#arkafus-admin main{display:flex;flex-direction:column;min-width:0;min-height:0}#arkafus-admin label{display:block;margin:10px 0;color:#b4cfcf}
#arkafus-admin input,#arkafus-admin select{background:#071b25;color:#edf7f4;border:1px solid #3b6670;padding:8px;border-radius:5px;max-width:100%;font:inherit}
#arkafus-admin aside input,#arkafus-admin aside select{width:100%}#arkafus-admin button{cursor:pointer;background:#287e85;color:#effff9;border:1px solid #4caaa8;border-radius:5px;padding:8px 12px;margin:4px 0;font:inherit}#arkafus-admin button:hover{background:#36999c}#arkafus-admin button:disabled{opacity:.45;cursor:default}
#arkafus-admin output{display:block;min-height:24px;color:#addfca;margin-top:12px}#arkafus-admin .catalog-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}#arkafus-admin [name=q]{flex:1;min-width:160px}#arkafus-admin [name=quantity]{width:76px}#arkafus-admin .catalog-filters select{max-width:200px}
#arkafus-admin .catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:9px;overflow:auto;min-height:0;flex:1;padding:2px 5px 8px 2px}#arkafus-admin .catalog-item{border:1px solid #31535d;background:#142f3c;border-radius:8px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;cursor:pointer}#arkafus-admin .catalog-item.selected{border-color:#98e7d7;box-shadow:0 0 0 1px #98e7d7}#arkafus-admin .catalog-item img{width:52px;height:52px;object-fit:contain}#arkafus-admin .catalog-item strong{font-size:12px;min-height:32px;line-height:1.4}#arkafus-admin small{color:#a2bfc2;font-size:11px}#arkafus-admin .catalog-item button{width:100%;margin-top:auto}#arkafus-admin .catalog-page{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}
@media(max-width:820px){#arkafus-admin .admin-body{grid-template-columns:190px minmax(0,1fr);gap:12px}#arkafus-admin{padding:14px}.dofus3-scene .auth-shell__rail{backdrop-filter:blur(4px)}}

/* Mazmorras window: selected difficulty / group size in the Arkafus teal instead of gold. */
.dgf-modes .dgf-mode--selected{border-color:#9ce8dd!important;background:rgba(156,232,221,.12)!important;box-shadow:0 0 0 1px rgba(156,232,221,.35)!important}
.dgf-modes .dgf-mode--selected .textColor_highlight_primary100{color:#9ce8dd!important}
.dgf-modes .dgf-mode__check{background:#9ce8dd!important}

/* Heroes follows the active game scene palette. */
#arkafus-heroes {
 --heroes-surface: var(--background_dark100, #1e1e1e);
 --heroes-raised: var(--background_medium100, #292929);
 --heroes-ink: var(--text_primary, #f4f1eb);
 --heroes-muted: color-mix(in srgb, var(--heroes-ink) 68%, transparent);
 --heroes-line: color-mix(in srgb, var(--heroes-ink) 14%, transparent);
 --heroes-accent: #9ce8dd;
 --heroes-title: var(--highlight_secondary100, #b65d6b);
 --heroes-action: var(--buttons_buttonPrimary, #9f2427);
 position: fixed;
 inset: 0;
 width: min(1200px, 97vw);
 height: min(820px, 95vh);
 max-width: none;
 max-height: none;
 margin: auto;
 padding: 0;
 overflow: hidden;
 border: 1px solid var(--heroes-line);
 border-radius: 9px;
 background: var(--heroes-surface);
 color: var(--heroes-ink);
 box-shadow: 0 12px 38px #0008;
 font: 13px Lexend-Regular, 'Segoe UI', sans-serif;
}
#arkafus-heroes[open] { display: flex; flex-direction: column; }
#arkafus-heroes::backdrop { background: #0002; }
#arkafus-heroes * { box-sizing: border-box; }
#arkafus-heroes img { object-fit: contain; }
#arkafus-heroes button {
 color: inherit;
 font: inherit;
 cursor: pointer;
}
#arkafus-heroes button:disabled { opacity: .48; cursor: default; }
#arkafus-heroes :is(button, input):focus-visible {
 outline: 2px solid var(--heroes-accent);
 outline-offset: 2px;
}
#arkafus-heroes .heroes-header {
 position: relative;
 flex: none;
 display: grid;
 place-items: center;
 min-height: 38px;
 border-bottom: 1px solid var(--heroes-line);
 background:
  var(--header_ornament, url('/core/dofus3/global/textures/ornaments/ornamentStandard.png')) left center / auto 100% no-repeat,
  linear-gradient(90deg, transparent, var(--header_gradient, var(--heroes-title)) 50%, transparent),
  var(--header_background, var(--heroes-surface));
}
#arkafus-heroes h2 {
 display: flex;
 flex-direction: row;
 align-items: center;
 gap: 8px;
 margin: 0;
 font-size: 17px;
 text-shadow: 0 1px 2px #000a;
}
#arkafus-heroes h2 img { width: 21px; height: 21px; }
#arkafus-heroes .heroes-close {
 position: absolute;
 inset: 3px 4px 3px auto;
 width: 32px;
 border: 0;
 background: url('/core/dofus3/global/textures/btn_close_normal.png') center / contain no-repeat;
}
#arkafus-heroes .heroes-close:hover {
 background-image: url('/core/dofus3/global/textures/btn_close_over.png');
}
#arkafus-heroes .heroes-body {
 display: flex;
 flex: 1;
 min-height: 0;
 flex-direction: column;
 padding: 14px 17px;
 overflow: auto;
}
#arkafus-heroes .heroes-toolbar, #arkafus-heroes .heroes-count, #arkafus-heroes .heroes-footer {
 display: flex;
 flex-direction: row;
 align-items: center;
 gap: 10px;
}
#arkafus-heroes .heroes-toolbar { justify-content: space-between; margin-bottom: 10px; }
#arkafus-heroes .heroes-count { font-weight: 700; margin-top: 3px; }
#arkafus-heroes .heroes-caption {
 color: var(--heroes-muted);
 text-transform: uppercase;
 letter-spacing: .08em;
 font-size: 10px;
 font-weight: 700;
}
#arkafus-heroes .heroes-dots { display: flex; flex-direction: row; gap: 4px; }
#arkafus-heroes .heroes-dots i {
 width: 8px;
 height: 8px;
 border: 1px solid var(--heroes-line);
 border-radius: 50%;
 background: var(--heroes-raised);
}
#arkafus-heroes .heroes-dots .filled { background: var(--heroes-accent); }
#arkafus-heroes .heroes-button {
 padding: 6px 13px;
 border: 1px solid var(--heroes-line);
 border-radius: 4px;
 background: var(--heroes-raised);
 font-weight: 700;
}
#arkafus-heroes .heroes-button:hover:not(:disabled) { border-color: var(--heroes-accent); }
#arkafus-heroes .heroes-filters {
 display: flex;
 flex-direction: row;
 flex-wrap: wrap;
 gap: 4px;
 border-bottom: 1px solid var(--heroes-line);
}
#arkafus-heroes .heroes-filters button {
 padding: 8px 11px;
 border: 0;
 border-bottom: 2px solid transparent;
 background: transparent;
 color: var(--heroes-muted);
}
#arkafus-heroes .heroes-filters button[aria-pressed=true] {
 color: var(--heroes-accent);
 background: var(--heroes-raised);
 border-bottom-color: currentColor;
}
#arkafus-heroes .heroes-filters small {
 margin-left: 6px;
 padding: 1px 5px;
 border-radius: 4px;
 background: var(--heroes-surface);
}
#arkafus-heroes .heroes-roster { flex: 1; min-height: 0; overflow: auto; padding: 14px 2px; }
#arkafus-heroes .heroes-grid {
 display: grid;
 grid-template-columns: repeat(4, minmax(0, 1fr));
 grid-auto-rows: 292px;
 gap: 16px 14px;
 padding-bottom: 6px;
}
#arkafus-heroes .heroes-slot {
 position: relative;
 min-width: 0;
 border: 1px dashed var(--heroes-line);
 border-radius: 7px;
 background: transparent;
}
#arkafus-heroes .heroes-slot-empty, #arkafus-heroes .heroes-slot-add {
 display: grid;
 place-items: center;
 color: var(--heroes-muted);
}
#arkafus-heroes .heroes-slot-add:hover:not(:disabled) { border-color: var(--heroes-accent); color: var(--heroes-accent); }
#arkafus-heroes .heroes-slot-number { position: absolute; top: 7px; left: 9px; font-size: 11px; }
#arkafus-heroes .heroes-slot-action { display: grid; justify-items: center; gap: 7px; font-size: 11px; }
#arkafus-heroes .heroes-slot-mark {
 display: grid;
 place-items: center;
 width: 34px;
 height: 34px;
 border: 1px dashed var(--heroes-line);
 border-radius: 50%;
 font-size: 26px;
}
#arkafus-heroes .heroes-slot-add .heroes-slot-mark { width: 60px; height: 60px; }
#arkafus-heroes .heroes-card {
 display: flex;
 flex-direction: column;
 padding: 0 9px 9px;
 border-style: solid;
 background: var(--heroes-raised);
}
#arkafus-heroes .heroes-active {
 border-color: var(--heroes-accent);
 background: radial-gradient(ellipse at 50% 32%,
  color-mix(in srgb, var(--heroes-accent) 23%, var(--heroes-surface)), var(--heroes-surface) 95%);
}
#arkafus-heroes .heroes-level {
 align-self: center;
 padding: 3px 12px;
 border-radius: 0 0 6px 6px;
 background: var(--heroes-surface);
 font-size: 10px;
}
#arkafus-heroes .heroes-card-art {
 flex: 1;
 min-height: 80px;
 display: grid;
 place-items: center;
 overflow: hidden;
}
#arkafus-heroes .heroes-card-art img { max-width: 75%; max-height: 120px; }
#arkafus-heroes .heroes-identity { display: flex; flex-direction: row; align-items: center; gap: 7px; min-height: 34px; }
#arkafus-heroes .heroes-identity div { min-width: 0; }
#arkafus-heroes .heroes-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; }
#arkafus-heroes .heroes-identity small, #arkafus-heroes .heroes-footer small { color: var(--heroes-muted); }
#arkafus-heroes :is(.heroes-identity, .heroes-footer) img {
 width: 31px;
 height: 31px;
 border: 1px solid var(--heroes-line);
 border-radius: 50%;
}
#arkafus-heroes .heroes-card-status {
 display: flex;
 flex-direction: row;
 align-items: center;
 justify-content: center;
 gap: 6px;
 margin-top: 7px;
 min-height: 24px;
 border-radius: 4px;
 background: var(--heroes-surface);
 text-transform: uppercase;
 font-size: 10px;
 font-weight: 700;
 color: var(--heroes-muted);
}
#arkafus-heroes .heroes-active .heroes-card-status { background: var(--heroes-accent); color: var(--heroes-surface); }
#arkafus-heroes .heroes-card-status img { width: 15px; height: 15px; }
#arkafus-heroes .heroes-footer {
 min-height: 42px;
 padding: 4px 10px;
 border: 1px solid var(--heroes-line);
 border-radius: 6px;
 background: var(--heroes-raised);
}
#arkafus-heroes .heroes-note { margin: 7px 0 0; color: var(--heroes-accent); }
#arkafus-heroes .heroes-note:empty { margin: 0; }
#arkafus-heroes .heroes-create {
 display: grid;
 grid-template-columns: clamp(164px, 22vw, 260px) minmax(210px, 1fr) clamp(168px, 21vw, 240px);
 align-items: start;
 gap: 14px;
 margin: 12px 0;
 flex: 1;
}
#arkafus-heroes .heroes-side {
 padding: 10px;
 background: var(--heroes-raised);
 border: 1px solid var(--heroes-line);
 border-radius: 6px;
 box-shadow: 0 4px 12px #0004;
}
#arkafus-heroes .heroes-class-grid, #arkafus-heroes .heroes-face-grid {
 display: grid;
 gap: 4px;
 margin-top: 7px;
}
#arkafus-heroes .heroes-class-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#arkafus-heroes .heroes-face-grid {
 grid-template-columns: repeat(4, minmax(0, 1fr));
 max-height: 164px;
 overflow-y: auto;
}
#arkafus-heroes :is(.heroes-class-grid, .heroes-face-grid) button {
 padding: 0;
 min-width: 0;
 aspect-ratio: 1;
 overflow: hidden;
 border: 1px solid var(--heroes-line);
 border-radius: 3px;
 background: var(--heroes-surface);
}
#arkafus-heroes :is(.heroes-class-grid, .heroes-face-grid) img { width: 100%; height: 100%; }
#arkafus-heroes :is(.heroes-class-grid, .heroes-face-grid, .heroes-sex) button[aria-pressed=true] {
 border-color: var(--heroes-accent);
 color: var(--heroes-accent);
}
#arkafus-heroes .heroes-sex { display: flex; flex-direction: row; justify-content: center; gap: 6px; margin-bottom: 10px; }
#arkafus-heroes .heroes-sex button {
 min-width: 38px;
 padding: 3px 6px;
 border: 1px solid var(--heroes-line);
 border-radius: 4px;
 background: var(--heroes-surface);
}
#arkafus-heroes .heroes-palette {
 display: grid;
 gap: 5px;
 padding-top: 10px;
 margin-top: 10px;
 border-top: 1px solid var(--heroes-line);
}
#arkafus-heroes .heroes-swatch, #arkafus-heroes .heroes-swatch > span:last-child {
 display: flex;
 flex-direction: row;
 align-items: center;
 justify-content: space-between;
 gap: 5px;
}
#arkafus-heroes .heroes-swatch { font-size: 10px; color: var(--heroes-muted); }
#arkafus-heroes .heroes-swatch > span:last-child {
 padding: 2px 5px 2px 2px;
 border: 1px solid var(--heroes-line);
 background: var(--heroes-surface);
 border-radius: 3px;
}
#arkafus-heroes .heroes-swatch input { width: 23px; height: 19px; padding: 0; border: 0; cursor: pointer; }
#arkafus-heroes .heroes-stage { display: grid; justify-items: center; text-align: center; min-width: 0; }
#arkafus-heroes .heroes-breed-title img { width: 48px; height: 48px; }
#arkafus-heroes .heroes-breed-title h3 { margin: 4px 0; font-size: 23px; text-transform: uppercase; }
#arkafus-heroes .heroes-platform {
 display: grid;
 justify-items: center;
 width: 100%;
 height: clamp(300px, 56vh, 445px);
 overflow: clip;
 position: relative;
}
#arkafus-heroes .heroes-stone {
 position: absolute;
 bottom: -155px;
 width: min(100%, 470px);
 aspect-ratio: 812 / 848;
 background: var(--d3a-dofus3-charactercreation-textures-charactercreationplateform-png,
  url('/content/dofus3/characterCreation/textures/CharacterCreationPlateform.png')) center / contain no-repeat;
}
#arkafus-heroes .heroes-model {
 position: absolute;
 left: 50%;
 translate: -50% 0;
 width: min(100%, 320px);
 height: min(260px, 35vh);
 bottom: 74%;
}
#arkafus-heroes .heroes-model > div { height: 100%; }
#arkafus-heroes .heroes-rotation {
 position: absolute;
 bottom: 71%;
 left: 50%;
 translate: -50% 0;
 display: flex;
 flex-direction: row;
 justify-content: space-between;
 width: min(95%, 290px);
}
#arkafus-heroes .heroes-rotate {
 border: 1px solid var(--heroes-line);
 border-radius: 50%;
 background: var(--heroes-surface);
 width: 32px;
 height: 32px;
 font-size: 20px;
}
#arkafus-heroes .heroes-name {
 position: relative;
 display: grid;
 gap: 7px;
 width: min(230px, 100%);
 margin-top: -60px;
 padding: 10px;
 border: 1px solid var(--heroes-line);
 border-radius: 6px;
 background: var(--heroes-surface);
 box-shadow: 0 4px 12px #0005;
}
#arkafus-heroes .heroes-name input {
 width: 100%;
 padding: 5px 7px;
 border: 1px solid var(--heroes-line);
 border-radius: 3px;
 background: var(--heroes-raised);
 color: inherit;
 font: inherit;
}
#arkafus-heroes .heroes-primary { background: var(--heroes-action); color: #fff; min-height: 38px; font-family: Rowdies-Regular, sans-serif; font-size: 19px; text-shadow: 0 1px 2px #000; }
#arkafus-heroes .heroes-primary:hover:not(:disabled) { background: var(--buttons_buttonPrimaryHover, var(--heroes-accent)); }
#arkafus-heroes .heroes-creation-wait { flex: 1; display: grid; place-items: center; }
#arkafus-heroes .heroes-creation-nav { margin-top: auto; align-items: flex-start; }
@media (max-width: 720px) {
 #arkafus-heroes .heroes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 #arkafus-heroes .heroes-create { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 #arkafus-heroes .heroes-stage { grid-row: 2; grid-column: 1 / -1; }
}

#arkafus-heroes .heroes-header { cursor: default; touch-action: none; }
#arkafus-heroes .heroes-header.heroes-dragging { cursor: grabbing; }
#arkafus-heroes .heroes-toolbar-actions,
#arkafus-heroes .heroes-filters button span,
#arkafus-heroes .heroes-group-info {
 display: flex;
 flex-direction: row;
 align-items: center;
 gap: 8px;
}
#arkafus-heroes .heroes-toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
#arkafus-heroes .heroes-ipdrop { display:flex; align-items:center; gap:7px; color:var(--heroes-muted); font-size:11px; }
#arkafus-heroes .heroes-ipdrop select { min-width:125px; max-width:165px; padding:5px 7px; color:var(--heroes-ink); background:var(--heroes-surface); border:1px solid var(--heroes-line); border-radius:4px; font:inherit; cursor:pointer; }
#arkafus-heroes .heroes-ipdrop select:focus-visible { outline:2px solid var(--heroes-accent); outline-offset:2px; }
/* Opciones */
#arkafus-heroes .heroes-options { display:flex; flex-direction:column; gap:12px; padding:4px 2px; }
#arkafus-heroes .heroes-opt-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
#arkafus-heroes .heroes-opt { display:flex; flex-direction:column; gap:10px; padding:12px 14px; background:var(--heroes-raised); border:1px solid var(--heroes-line); border-radius:4px; }
#arkafus-heroes .heroes-opt > header { display:flex; flex-direction:column; gap:3px; }
#arkafus-heroes .heroes-opt > header strong { font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
#arkafus-heroes .heroes-opt > header small, #arkafus-heroes .heroes-opt-empty { color:var(--heroes-muted); font-size:11px; margin:0; }
#arkafus-heroes .heroes-opt .heroes-ipdrop select { max-width:none; width:100%; }
#arkafus-heroes .heroes-switch { display:flex !important; flex-direction:row !important; align-items:center; gap:10px; cursor:pointer; font-size:12px; background:none; border:0; color:inherit; padding:2px 0; align-self:flex-start; }
#arkafus-heroes .heroes-switch-track { position:relative; flex:none; width:40px; height:20px; border-radius:10px; background:var(--heroes-surface); border:1px solid var(--heroes-line); transition:background .15s; }
#arkafus-heroes .heroes-switch-track::after { content:''; position:absolute; top:3px; left:3px; width:12px; height:12px; border-radius:50%; background:var(--heroes-muted); transition:left .15s, background .15s; }
#arkafus-heroes .heroes-switch.on .heroes-switch-track { background:color-mix(in srgb, var(--heroes-accent) 40%, transparent); border-color:var(--heroes-accent); }
#arkafus-heroes .heroes-switch.on .heroes-switch-track::after { left:23px; background:var(--heroes-accent); }
#arkafus-heroes .heroes-switch:focus-visible .heroes-switch-track { outline:2px solid var(--heroes-accent); outline-offset:2px; }
#arkafus-heroes .heroes-presets { display:flex; flex-direction:column; gap:10px; }
#arkafus-heroes .heroes-preset { display:flex; flex-direction:column; gap:10px; padding:10px 12px; background:var(--heroes-surface); border:1px solid var(--heroes-line); border-radius:6px; }
#arkafus-heroes .heroes-preset.main { border-color:#f2c94c; box-shadow:inset 0 0 0 1px #f2c94c55, 0 0 14px #f2c94c22; }
#arkafus-heroes .heroes-preset-head { display:flex !important; flex-direction:row !important; align-items:center; gap:10px; }
#arkafus-heroes .heroes-preset-star { background:none; border:0; color:var(--heroes-muted); font-size:26px; line-height:1; cursor:pointer; padding:0 2px; transition:color .15s, transform .15s; }
#arkafus-heroes .heroes-preset-star:hover { color:#f2c94c; transform:scale(1.12); }
#arkafus-heroes .heroes-preset.main .heroes-preset-star { color:#f2c94c; text-shadow:0 0 8px #f2c94c88; }
#arkafus-heroes .heroes-preset-badge { padding:3px 9px; border-radius:10px; background:#f2c94c22; color:#f2c94c; font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
#arkafus-heroes .heroes-preset-count { margin-left:auto; color:var(--heroes-muted); font-size:11px; }
#arkafus-heroes .heroes-preset-name { width:160px; padding:6px 8px; color:var(--heroes-ink); background:var(--heroes-raised); border:1px solid var(--heroes-line); border-radius:4px; font:inherit; font-size:13px; font-weight:bold; }
#arkafus-heroes .heroes-preset-faces { display:grid !important; grid-template-columns:repeat(auto-fill, minmax(72px, 1fr)); gap:8px; }
#arkafus-heroes .heroes-face-toggle { display:flex !important; flex-direction:column !important; align-items:center; gap:5px; padding:6px 2px; border-radius:6px; border:1px solid transparent; background:none; color:var(--heroes-muted); cursor:pointer; opacity:.4; filter:grayscale(1); transition:opacity .15s, filter .15s, border-color .15s, background .15s; }
#arkafus-heroes .heroes-face-toggle small { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
#arkafus-heroes .heroes-face-toggle.on { opacity:1; filter:none; color:var(--heroes-ink); background:color-mix(in srgb, var(--heroes-accent) 10%, transparent); border-color:color-mix(in srgb, var(--heroes-accent) 45%, transparent); }
#arkafus-heroes .heroes-face-toggle:hover { opacity:.9; filter:none; }
#arkafus-heroes .heroes-face { width:48px; height:48px; border-radius:50%; border:2px solid var(--heroes-line); background:var(--heroes-raised); overflow:hidden; }
#arkafus-heroes .heroes-face-toggle.on .heroes-face { border-color:var(--heroes-accent); }
#arkafus-heroes .heroes-face img { display:block; width:100%; height:100%; object-fit:cover; }
#arkafus-heroes .heroes-preset-btn { min-width:30px; padding:5px 10px; }
#arkafus-heroes .heroes-preset-del:hover { border-color:#c0393b; color:#ff8a8a; }
#arkafus-heroes .heroes-slot-locked { display:grid; place-items:center; cursor:pointer; color:var(--heroes-muted); border-style:solid; background:linear-gradient(180deg, #2a2f2e, #1b1f1e); filter:grayscale(.6); }
#arkafus-heroes .heroes-slot-locked:disabled { cursor:default; opacity:.55; }
#arkafus-heroes .heroes-slot-locked:hover:not(:disabled) { border-color:var(--heroes-accent); filter:none; }
#arkafus-heroes .heroes-lock { display:grid; place-items:center; width:56px; height:56px; border-radius:50%; background:#ffffff22; font-size:22px; }
#arkafus-heroes .heroes-lock-price { padding:5px 10px; border-radius:4px; background:#141414e6; color:#f4f1eb; font-weight:bold; font-size:12px; }
#arkafus-heroes .heroes-opt-actions { display:flex; align-items:center; justify-content:space-between; }
#arkafus-heroes .heroes-opt-actions small { color:var(--heroes-muted); }
#arkafus-heroes .heroes-opt-save { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
#arkafus-heroes .heroes-opt-save small { color:var(--heroes-muted); font-size:11px; }
#arkafus-heroes .heroes-save { background:linear-gradient(180deg, #3a8fb0, #2d6a80); border-color:#5fb4d4; color:#fff; padding:8px 18px; font-weight:bold; text-shadow:0 1px 2px #0008; }
#arkafus-heroes .heroes-save:hover:not(:disabled) { background:linear-gradient(180deg, #48a3c6, #347a93); }
@media (max-width: 720px) { #arkafus-heroes .heroes-opt-row { grid-template-columns:1fr; } }
#arkafus-heroes .heroes-group-info { margin-left: auto; padding: 3px 8px; color: var(--heroes-muted); }
#arkafus-heroes .heroes-card { transition: border-color .15s, background-color .15s, box-shadow .15s; }
#arkafus-heroes .heroes-card:hover,
#arkafus-heroes .heroes-card:focus-within {
 border-color: var(--heroes-accent);
 box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--heroes-accent) 25%, transparent);
}
#arkafus-heroes .heroes-offline .heroes-card-art { filter: saturate(.38) brightness(.7); }
#arkafus-heroes .heroes-offline:hover .heroes-card-art { filter: none; }
#arkafus-heroes .heroes-card-tag {
 align-self: flex-start;
 border-radius: 10px;
 background: var(--heroes-surface);
 color: var(--heroes-muted);
 font-size: 9px;
 padding: 2px 7px;
 text-transform: uppercase;
}
#arkafus-heroes .heroes-connected { border-color: color-mix(in srgb, var(--heroes-accent) 52%, transparent); }
#arkafus-heroes .heroes-card-status { min-height: 28px; }
#arkafus-heroes .heroes-card-status.heroes-button { font-size: 11px; padding: 3px 8px; }
#arkafus-heroes .heroes-life { display: grid; gap: 1px; text-align: center; color: var(--heroes-muted); font-size: 9px; margin-top: 4px; }
#arkafus-heroes .heroes-life progress { width: 100%; height: 6px; accent-color: var(--heroes-accent); }
#arkafus-heroes .heroes-breed-title { display: grid; grid-template-columns: 34px 1fr 34px; justify-items: center; align-items: center; }
#arkafus-heroes .heroes-breed-title h3 { grid-column: 1 / -1; }
#arkafus-heroes .heroes-palette-actions { display: flex; flex-direction: row; gap: 5px; justify-content: flex-end; margin-bottom: 3px; }
#arkafus-heroes .heroes-palette-actions button { padding: 2px 7px; }
#arkafus-heroes .heroes-name label { font-family: Lexend-SemiBold, sans-serif; }

#arkafus-heroes .heroes-dots .available { border-color: var(--heroes-accent); }
#arkafus-heroes .heroes-disconnect {
 position: absolute;
 top: 5px;
 right: 38px;
 width: 23px;
 height: 23px;
 border: 0;
 border-radius: 4px;
 background: var(--heroes-surface);
 color: var(--heroes-muted);
 font-size: 17px;
}
#arkafus-heroes .heroes-disconnect:hover { color: var(--heroes-ink); }
#arkafus-heroes .heroes-delete {
 position: absolute;
 top: 5px;
 right: 6px;
 width: 27px;
 height: 27px;
 border: 1px solid #b76b70;
 border-radius: 5px;
 background: #69383d;
 color: #fff1ee;
 font: 700 20px/1 sans-serif;
 cursor: pointer;
}
#arkafus-heroes .heroes-delete:hover:not(:disabled),
#arkafus-heroes .heroes-danger:hover { background: #8c4148; }
#arkafus-heroes .heroes-delete:disabled { opacity: .4; cursor: default; }
#arkafus-heroes .heroes-confirm {
 width: min(410px, calc(100vw - 32px));
 padding: 20px;
 border: 1px solid var(--heroes-line);
 border-radius: 9px;
 background: var(--heroes-surface);
 color: var(--heroes-ink);
 box-shadow: 0 14px 45px #0009;
}
#arkafus-heroes .heroes-confirm::backdrop { background: #0008; }
/* Centred on the screen, not on the heroes window (which is moved with translate). */
#arkafus-heroes .heroes-confirm[open] { position: fixed; inset: 0; margin: auto; height: fit-content; translate: none; }
#arkafus-heroes .heroes-confirm .heroes-confirm-actions { flex-direction: row; }
#arkafus-heroes .heroes-confirm .heroes-confirm-actions button { flex: 1; padding: 8px 12px; }
#arkafus-heroes .heroes-confirm h3 { margin: 0 0 10px; font-size: 18px; }
#arkafus-heroes .heroes-confirm p { margin: 0 0 18px; color: var(--heroes-muted); line-height: 1.45; }
#arkafus-heroes .heroes-confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }
#arkafus-heroes .heroes-danger { border-color: #b76b70; background: #69383d; color: #fff1ee; }
#arkafus-heroes .heroes-footer-detail { border-left: 1px solid var(--heroes-line); padding-left: 12px; }
#arkafus-heroes .heroes-footer-map { margin-left: auto; }
#arkafus-heroes .heroes-swatch input { display: inline-block; }
#arkafus-heroes .heroes-swatch > span:last-child { min-width: 80px; }
#arkafus-heroes .heroes-rotate { display: grid; place-items: center; }
#arkafus-heroes .heroes-create { grid-template-columns: clamp(195px, 24vw, 280px) minmax(220px, 1fr) clamp(205px, 24vw, 270px); }
#arkafus-heroes .heroes-face-grid { max-height: 225px; gap: 5px; }
#arkafus-heroes .heroes-class-grid { gap: 5px; }
#arkafus-heroes .heroes-sex button { min-width: 54px; min-height: 30px; font-size: 19px; }
#arkafus-heroes .heroes-caption, #arkafus-heroes .heroes-swatch { font-size: 12px; }
#arkafus-heroes .heroes-palette { gap: 7px; }
#arkafus-heroes .heroes-swatch input[type=color] { width: 30px; height: 25px; }
#arkafus-heroes .heroes-color-code { width: 70px; border: 0; background: transparent; color: var(--heroes-ink); font: 11px Lexend-Regular, sans-serif; text-align: right; }
#arkafus-heroes .heroes-color-code:not([readonly]) { outline: 1px solid var(--heroes-accent); }
#arkafus-heroes .heroes-palette-actions button { min-width: 32px; min-height: 29px; font-size: 18px; }
#arkafus-heroes .heroes-platform { height: clamp(345px, 61vh, 490px); }
#arkafus-heroes .heroes-stone { bottom: -170px; }
#arkafus-heroes .heroes-model { bottom: 69%; }
#arkafus-heroes .heroes-rotation { bottom: 66%; }
#arkafus-heroes .heroes-name { margin-top: -48px; }
#arkafus-heroes .heroes-card-art { min-height: 150px; overflow: visible; }
#arkafus-heroes .heroes-card-art img { max-height: 170px; }
#arkafus-heroes .heroes-card { overflow: hidden; }
#arkafus-heroes .heroes-card-art > * { max-width: 100%; max-height: 100%; }
#arkafus-heroes .heroes-card-art canvas { object-fit: contain; }
#arkafus-heroes .heroes-active .heroes-card-status { background: color-mix(in srgb, var(--heroes-accent) 58%, var(--heroes-surface)); }
#arkafus-heroes .heroes-connected .heroes-card-tag { color: #a0dca8; background: #24432e; font-size: 11px; }
#arkafus-heroes .heroes-life { font-size: 11px; }
#arkafus-heroes .heroes-swatch > span:last-child { min-width: 124px; padding: 3px 6px; }
#arkafus-heroes .heroes-swatch input.heroes-color-code { width: 82px; min-width: 82px; height: 24px; padding: 1px 3px; font-size: 12px; overflow: visible; cursor: text; }
.dofus3-scene .arkafus-hero-tabs {
 display:flex; flex-direction:column; flex:none; gap:4px;
 pointer-events:auto; z-index:3; color:var(--textColor_white_white100,#eee);
}
.dofus3-scene .arkafus-hero-tabs--inventory {
 position:absolute; top:7px; left:50%; transform:translateX(-50%);
 width:max-content; max-width:calc(100% - 100px);
}
.dofus3-scene .arkafus-hero-tabs--cosmetic {
 position:absolute; top:10px; left:50%; transform:translateX(-50%); z-index:6;
 width:max-content; max-width:calc(100% - 150px);
}
.dofus3-scene .arkafus-hero-tabs--cosmetic button { width:32px; height:32px; border-radius:50%; }
.dofus3-scene .arkafus-hero-tabs--cosmetic button[aria-pressed="true"] { border-color:#7fd3ff; background:#1f3a4d; }
.dofus3-scene .arkafus-hero-tabs--spells { padding:5px 14px 6px; }
.dofus3-scene .arkafus-hero-label { font-weight:700; font-size:12px; line-height:14px; }
.dofus3-scene .arkafus-hero-portraits {
 display:flex; flex-flow:row nowrap; align-items:center; gap:5px;
 overflow-x:auto; overflow-y:hidden; scrollbar-width:thin;
}
.dofus3-scene .arkafus-hero-portraits button {
 display:grid; place-items:center; flex:none; width:34px; height:34px; padding:1px;
 border:1px solid #ffffff28; border-radius:7px; background:#181617c0; cursor:pointer;
}
.dofus3-scene .arkafus-hero-tabs--inventory button { width:28px; height:28px; border-radius:50%; }
.dofus3-scene .arkafus-hero-portraits button[aria-pressed="true"] { border-color:#efcc83; background:#514333; }
.dofus3-scene .arkafus-hero-portraits button:disabled { cursor:wait; }
.dofus3-scene .arkafus-hero-portraits img { width:100%; height:100%; object-fit:contain; pointer-events:none; }
.dofus3-scene .arkafus-hero-tabs small { padding:4px; color:#ffd39a; }
.arkafus-vendor-badge { object-fit:contain; filter:drop-shadow(0 2px 2px #000b); }
.arkafus-dungeon-times {
 padding: 10px 12px;
 border: 1px solid var(--background_medium100, #353039);
 border-radius: 7px;
 color: var(--text_primary, #eee9ee);
}
.arkafus-dungeon-times p, .arkafus-dungeon-times ul { margin: 6px 0 0; }
.arkafus-dungeon-times ul { list-style: none; padding: 0; }
.dofus3-scene .dgf-hero [data-name="achievements_line"] { position: relative; z-index: 1; }
.dofus3-scene .dgf-achievement-chip__name { color: #ded7e6; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.dofus3-scene .dgf-achievement-chip--complete .dgf-achievement-chip__name { color: #cbf2c9; }
.dofus3-scene .dgf-achievement-chip[data-achievement-id] { max-width: 100%; min-width: 0; }
.arkafus-achievement-toast {
 position: fixed; right: 22px; bottom: 105px; z-index: 10020;
 display: flex; align-items: center; gap: 10px; max-width: min(340px, 85vw);
 padding: 10px 14px; border: 1px solid #b79a62; border-radius: 7px;
 color: #f7ecd5; background: #26212e; cursor: pointer;
 box-shadow: 0 4px 18px #0009; text-align: left; font: 13px Lexend-Regular, sans-serif;
}
.arkafus-achievement-toast img { width: 30px; height: 30px; object-fit: contain; }
.arkafus-achievement-toast small { display: block; margin-top: 3px; }

.dofus3-scene .d3-server-list__group--last {
  border-color: #9ce8dd73 !important;
  box-shadow: 0 0 28px #1d6f8647 !important;
  background: linear-gradient(180deg, rgba(14, 48, 61, .96), rgba(8, 28, 38, .94)) !important;
}
.dofus3-scene .d3-server-list__group--last .d3-server-list__heading { color: #9ce8dd !important; }
.dofus3-scene .d3-server-row--last,
.dofus3-scene .d3-server-list__group--last .d3-server-row {
  background: linear-gradient(110deg, rgba(29, 111, 134, .45), rgba(156, 232, 221, .12)) !important;
  border-color: #9ce8dd80 !important;
  box-shadow: inset 3px 0 #9ce8dd !important;
}
.dofus3-scene .d3-server-list__group--last .d3-server-row .textColor_highlight_primary100 { color: #b5f0e4 !important; }
.arkafus-server-logo { width: 46px; height: 46px; object-fit: contain; display: block; }
.dofus3-scene [data-name="socialDock"] {
  background: linear-gradient(180deg, #1d6f86, #0e3d4c) !important;
  border: 1px solid #9ce8dd !important;
  box-shadow: 0 4px 14px rgba(8, 40, 52, .45) !important;
}
.dofus3-scene [data-name="socialDock"] * { color: #e7fffb !important; }

/* Pantalla de carga: la descarga de datos del juego queda delante, con un brillo lento. */
.dofus3-scene.loading-screen .loading-screen__halo{display:block!important;animation:arkafus-halo 5s ease-in-out infinite!important}
@keyframes arkafus-halo{0%,100%{opacity:.28}50%{opacity:.62}}
.dofus3-scene.loading-screen .loading-screen__dock{width:min(640px,86vw)}
.dofus3-scene.loading-screen .loading-screen__dock:has(.loading-screen__download) .loading-screen__dots{display:none}
.dofus3-scene.loading-screen .loading-screen__download{order:-1;gap:12px;padding:2px 0 14px;border-top:0;border-bottom:1px solid rgba(156,232,221,.28)}
.dofus3-scene.loading-screen .loading-screen__download .textShort_smallRegular{font-size:15px!important;line-height:1.35}
.dofus3-scene.loading-screen .loading-screen__download-row:nth-of-type(2) .textShort_smallRegular:first-child{font-size:20px!important;color:#f4fffc!important}
.dofus3-scene.loading-screen .loading-screen__gauge #gaugeStandard_fill,.dofus3-scene.loading-screen .loading-screen__download-gauge #gaugeStandard_fill{position:relative;overflow:hidden}
.dofus3-scene.loading-screen .loading-screen__gauge #gaugeStandard_fill:after,.dofus3-scene.loading-screen .loading-screen__download-gauge #gaugeStandard_fill:after{display:block!important;content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);animation:arkafus-sheen 1.7s linear infinite}
@keyframes arkafus-sheen{from{transform:translateX(-120%)}to{transform:translateX(120%)}}

/* Ventana de subida de nivel: mas pequena y mas abajo para dejar ver la ilustracion del dios */
[data-name=LevelUp] #LevelUp_content{transform:translateY(24vh) scale(.72)!important;transform-origin:top center!important}

/* Fight menu «Expulsar» on one of our heroes, and the "panel closed in combat" notice. */
.arkafus-kick-confirm { background:#1d2328; color:#e9eef2; border:1px solid #5fb4d4; border-radius:10px; padding:18px 20px; max-width:360px; box-shadow:0 10px 40px #000a; font-family:inherit; }
.arkafus-kick-confirm::backdrop { background:#0008; }
.arkafus-kick-confirm h3 { margin:0 0 10px; font-size:17px; }
.arkafus-kick-confirm p { margin:0 0 16px; color:#a9b6bf; line-height:1.45; font-size:13px; }
.arkafus-kick-actions { display:flex; gap:8px; }
.arkafus-kick-btn { flex:1; padding:8px 12px; border-radius:6px; border:1px solid #4a5862; background:#2a333a; color:#e9eef2; cursor:pointer; font:inherit; }
.arkafus-kick-btn:hover { background:#34404a; }
.arkafus-kick-yes { background:linear-gradient(180deg,#3a8fb0,#2d6a80); border-color:#5fb4d4; color:#fff; font-weight:bold; }
.arkafus-kick-yes:hover { background:linear-gradient(180deg,#48a3c6,#347a93); }
.arkafus-kick-toast { position:fixed; left:50%; top:18%; translate:-50% 0; z-index:9999; background:#1d2328ee; color:#e9eef2; border:1px solid #5fb4d4; border-radius:8px; padding:10px 16px; font-size:13px; pointer-events:none; }
