/* Reference HUD: the original faction / arsenal assets stay untouched. */
:is(.hd-mo-task,.guerra-mo-task){--objective-accent:var(--mo,var(--mo-task,#d7d52c))}
.hd-mo-task.term{--objective-mark:'⬡'}
.hd-mo-task.auto{--objective-mark:'⚙'}
.hd-mo-task.illum{--objective-mark:'◈'}
.hd-mo-task.human{--objective-mark:'★'}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task,.guerra-mo-task){
 position:relative;isolation:isolate;box-sizing:border-box;min-width:0;overflow:hidden;
 border:1px solid color-mix(in srgb,var(--objective-accent) 80%,#151515);
 border-top:3px solid var(--objective-accent);border-radius:13px;padding:14px;
 background:
  repeating-linear-gradient(66deg,transparent 0 48px,color-mix(in srgb,var(--objective-accent) 3%,transparent) 49px 50px,transparent 51px 98px),
  radial-gradient(ellipse at 92% 0%,color-mix(in srgb,var(--objective-accent) 17%,transparent),transparent 57%),
  linear-gradient(180deg,color-mix(in srgb,var(--objective-accent) 9%,#100b0c),#08090a 60%);
 box-shadow:inset 3px 0 color-mix(in srgb,var(--objective-accent) 74%,transparent),inset 0 1px 0 #ffffff16,0 7px 18px #0005;
}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task,.guerra-mo-task)::before{
 content:'';position:absolute;left:7px;top:12px;width:1px;height:68px;
 background:var(--objective-accent);opacity:.7;pointer-events:none;
}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task,.guerra-mo-task)::after{
 content:var(--mo-mark,var(--objective-mark,'◆'));position:absolute;z-index:-1;
 top:34px;right:13px;color:var(--objective-accent);font:900 64px/1 Arial,sans-serif;opacity:.11;pointer-events:none;
}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task-kicker,.guerra-mo-task-kicker){
 align-items:center;gap:8px;margin:0 0 12px;font:700 9px/1.35 'Oswald',Impact,sans-serif;letter-spacing:.4px;
}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task,.guerra-mo-task) h4{
 display:flex;align-items:center;gap:12px;min-height:0;margin:0 0 14px;
 color:#f4f4f0;font:700 21px/1.2 'Oswald',Impact,sans-serif;text-transform:uppercase;
}
:is(#ordem-maior,#hd-ov-order,.mobile-order) h4 .order-task-faction-logo{
 width:46px;height:46px;flex:0 0 46px;object-fit:contain;
}
.order-objective-title{min-width:0;overflow-wrap:anywhere;text-wrap:pretty}
:is(.hd-mo-task,.guerra-mo-task) .order-equipment{
 position:relative;display:block;box-sizing:border-box;min-width:0;margin:0 0 10px;overflow:hidden;
 border:1px solid color-mix(in srgb,var(--objective-accent) 68%,#272727);
 border-left:4px solid var(--objective-accent);border-radius:10px;
 background:linear-gradient(100deg,color-mix(in srgb,var(--objective-accent) 10%,#100809),#09090be8);
}
.order-equipment-label{
 position:relative;display:block;padding:5px 9px;
 border-bottom:1px solid color-mix(in srgb,var(--objective-accent) 12%,transparent);
 background:linear-gradient(90deg,color-mix(in srgb,var(--objective-accent) 6%,transparent),transparent);
 color:var(--objective-accent);font:700 11px/1.25 'Oswald',Impact,sans-serif;letter-spacing:.5px;text-transform:uppercase;
}
.order-equipment-body{position:relative;display:flex;align-items:center;gap:12px;min-width:0;padding:8px 9px;min-height:72px;isolation:isolate}
.order-equipment-body::before{
 content:'';position:absolute;z-index:-1;right:12px;top:9px;width:55px;height:23px;
 background:repeating-linear-gradient(123deg,var(--objective-accent) 0 8px,transparent 8px 14px);
 transform:skewX(-12deg);opacity:.13;pointer-events:none;
}
.order-equipment-body::after{
 content:'';position:absolute;z-index:-1;right:10px;bottom:7px;width:78px;height:25px;
 border-top:1px solid color-mix(in srgb,var(--objective-accent) 9%,transparent);
 border-right:1px solid color-mix(in srgb,var(--objective-accent) 9%,transparent);
 transform:skewX(-35deg);pointer-events:none;
}
.order-equipment-icon{position:relative;display:block;flex:0 0 64px;width:64px;height:64px;border-radius:7px;overflow:hidden;background:#050607}
.order-equipment-icon[hidden]{display:none}
.order-equipment-icon img{display:block;width:100%;height:100%;object-fit:contain;filter:none!important}
.order-equipment-name{position:relative;display:block;min-width:0;color:#f5f5ef;font:700 18px/1.23 'Oswald',Impact,sans-serif;letter-spacing:.1px;text-transform:uppercase;overflow-wrap:anywhere}
.order-equipment.is-unidentified .order-equipment-name{font-size:15px;color:#d9d9d2}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task-progress,.guerra-mo-progress){
 height:11px;border:1px solid color-mix(in srgb,var(--objective-accent) 84%,#242424);border-radius:0;
 background:#07090c;box-shadow:inset 0 0 7px #0009;
}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task-progress,.guerra-mo-progress) i{
 background:linear-gradient(90deg,color-mix(in srgb,var(--objective-accent) 66%,#080a0c),var(--objective-accent));box-shadow:none;
}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task-progress-label,.guerra-mo-progress-label){
 display:flex;align-items:center;justify-content:space-between;gap:5px 8px;flex-wrap:wrap;margin-top:5px;color:#a3a6a7;font:11px/1.35 Arial,sans-serif;
}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task-progress-label,.guerra-mo-progress-label) span{min-width:0;white-space:normal;overflow-wrap:anywhere}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task-progress-label,.guerra-mo-progress-label) strong{color:var(--objective-accent);font:700 21px/1 'Oswald',Impact,sans-serif}
:is(#ordem-maior,#hd-ov-order) :is(.hd-mo-task-meta,.guerra-mo-meta){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 0}
:is(#ordem-maior,#hd-ov-order) :is(.hd-mo-task-meta,.guerra-mo-meta)>div{
 min-width:0;padding:8px;border:1px solid color-mix(in srgb,var(--objective-accent) 35%,#262222);border-radius:8px;background:color-mix(in srgb,var(--objective-accent) 3%,#09090b);
}
:is(#ordem-maior,#hd-ov-order) :is(.hd-mo-task-meta,.guerra-mo-meta) small{color:#a5a6a7;font:9px/1.3 Arial,sans-serif;letter-spacing:.4px;text-transform:uppercase}
:is(#ordem-maior,#hd-ov-order) :is(.hd-mo-task-meta,.guerra-mo-meta) strong{display:flex;align-items:center;gap:6px;min-width:0;margin-top:6px;color:#eeeeeb;font:700 13px/1.25 'Oswald',Impact,sans-serif;white-space:normal;overflow-wrap:anywhere}
:is(.hd-mo-task-meta,.guerra-mo-meta) strong::before{
 content:'';display:inline-block;flex:0 0 18px;width:18px;height:18px;background:#c6c7c6;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M2 15h4v7H2zm8-6h4v13h-4zm8-7h4v20h-4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
:is(.hd-mo-task-meta,.guerra-mo-meta)>div:nth-child(2) strong::before{
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M12 5v7h5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
}
:is(#ordem-maior,#hd-ov-order) :is(.hd-mo-task-status,.guerra-mo-status){
 position:relative;display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;width:100%;max-width:none;min-height:25px;
 margin:12px 0 0;padding:5px 8px 5px 0;border:0;background:transparent;color:var(--objective-accent);
 font:700 12px/1.25 'Oswald',Impact,sans-serif;letter-spacing:.5px;text-align:right;isolation:isolate;
}
:is(#ordem-maior,#hd-ov-order) :is(.hd-mo-task-status,.guerra-mo-status)::before{
 content:'';position:absolute;z-index:-1;left:0;top:5px;bottom:4px;width:max(0px,calc(100% - 145px));
 background:repeating-linear-gradient(130deg,var(--objective-accent) 0 6px,transparent 6px 11px);opacity:.13;
}
:is(#ordem-maior,#hd-ov-order) :is(.hd-mo-task-status,.guerra-mo-status)::after{
 content:'';position:absolute;z-index:-1;right:0;top:0;bottom:0;width:137px;
 border-right:1px solid var(--objective-accent);
 background:linear-gradient(126deg,transparent 11px,var(--objective-accent) 11.5px 12.5px,transparent 13px) left/17px 100% no-repeat,
 linear-gradient(var(--objective-accent),var(--objective-accent)) right top/calc(100% - 12px) 1px no-repeat,
 linear-gradient(var(--objective-accent),var(--objective-accent)) right bottom/100% 1px no-repeat;
}
/* Home retains its intentionally shorter summary. */
body.fundo-principal .mobile-order #mobile-order-objectives .mobile-order-objective h4{font-size:14px;line-height:1.3;margin:6px 0 9px;gap:8px}
body.fundo-principal .mobile-order #mobile-order-objectives .mobile-order-objective h4 .order-task-faction-logo{width:27px;height:27px;flex-basis:27px}
body.fundo-principal .mobile-order .mobile-order-objective .order-equipment{margin-bottom:8px}
body.fundo-principal .mobile-order .mobile-order-objective .order-equipment-icon{flex-basis:44px;width:44px;height:44px}
body.fundo-principal .mobile-order .mobile-order-objective .order-equipment-name{font-size:14px}
body.fundo-principal .mobile-order .mobile-order-objective .order-equipment-label{font-size:9px}
body.fundo-principal .mobile-order .mobile-order-objective .order-equipment-body{gap:8px;padding:6px 8px;min-height:0}
@media(max-width:768px){
 body[data-order-only] #ordem-maior .guerra-mo-task{padding:14px;border-radius:13px}
 body[data-order-only] #ordem-maior .guerra-mo-task h4{font-size:22px;line-height:1.2;gap:12px;margin:0 0 14px}
 body[data-order-only] #ordem-maior .guerra-mo-task .order-task-faction-logo{width:49px;height:49px;flex-basis:49px}
 body[data-order-only] #ordem-maior .guerra-mo-task .order-equipment-name{font-size:19px}
 body[data-order-only] #ordem-maior .guerra-mo-task-kicker{font-size:10px;margin-bottom:12px}
 body[data-order-only] #ordem-maior .guerra-mo-task .order-equipment-icon{width:64px;height:64px;flex-basis:64px}
 body[data-order-only] #ordem-maior .guerra-mo-task .guerra-mo-meta{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0 0}
 body[data-order-only] #ordem-maior .guerra-mo-task .guerra-mo-meta strong{font-size:16px}
 body[data-order-only] #ordem-maior .guerra-mo-task .guerra-mo-meta small{font-size:9px}
}
@media(max-width:360px){
 body[data-order-only] #ordem-maior .guerra-mo-task h4{font-size:19px}
 body[data-order-only] #ordem-maior .guerra-mo-task .order-equipment-name{font-size:16px}
 .order-equipment-body{gap:8px;padding:7px}
}
@media(prefers-reduced-motion:reduce){.order-equipment-body::before{animation:none}}

/* Compact approved layout: real faction emblem replaces the decorative mark.
   Absolute artwork never clips the title; small cards may wrap naturally. */
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task,.guerra-mo-task){padding:10px;border-radius:11px}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task,.guerra-mo-task)::before{height:46px;top:9px}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task,.guerra-mo-task)::after{content:none}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task-kicker,.guerra-mo-task-kicker){margin-bottom:7px}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task,.guerra-mo-task) h4{
 position:static;display:block;box-sizing:border-box;min-height:30px;
 padding-right:48px;margin:0 0 8px;font-size:17px;line-height:1.2;
}
:is(#ordem-maior,#hd-ov-order,.mobile-order) h4 .order-task-faction-logo{
 position:absolute;z-index:0;top:27px;right:10px;
 width:50px;height:50px;max-width:none;object-fit:contain;
 opacity:.4;pointer-events:none;user-select:none;
}
.order-objective-title{position:relative;z-index:1;word-break:normal;overflow-wrap:break-word;text-wrap:pretty}
:is(.hd-mo-task,.guerra-mo-task) .order-equipment{z-index:1;margin-bottom:7px;border-radius:8px;background-color:#090a0c}
.order-equipment-label{padding:3px 8px;font-size:10px}
.order-equipment-body{gap:9px;padding:6px 8px;min-height:0}
.order-equipment-icon{flex-basis:44px;width:44px;height:44px;border-radius:5px}
.order-equipment-name{font-size:16px;line-height:1.2}
.order-equipment-body::before{right:9px;top:8px;width:46px;height:19px}
.order-equipment-body::after{right:9px;bottom:6px;height:19px;width:64px}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task-progress,.guerra-mo-progress){height:8px}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task-progress-label,.guerra-mo-progress-label){margin-top:4px}
:is(#ordem-maior,#hd-ov-order,.mobile-order) :is(.hd-mo-task-progress-label,.guerra-mo-progress-label) strong{font-size:18px}
:is(#ordem-maior,#hd-ov-order) :is(.hd-mo-task-meta,.guerra-mo-meta){gap:6px;margin-top:7px}
:is(#ordem-maior,#hd-ov-order) :is(.hd-mo-task-meta,.guerra-mo-meta)>div{padding:6px 7px}
:is(#ordem-maior,#hd-ov-order) :is(.hd-mo-task-status,.guerra-mo-status){margin-top:8px}
:is(#hd-ov-order,#ordem-maior) .order-objectives-panel{padding:12px}
:is(#hd-ov-order,#ordem-maior) .order-objectives-panel>header{top:-12px;padding:0;margin-bottom:6px}
:is(#hd-ov-order,#ordem-maior) .order-objectives-panel>header h2{font-size:16px}
:is(#hd-ov-order,#ordem-maior) .order-objectives-panel :is(.hd-mo-objectives-grid,.guerra-mo-grid){gap:10px}
/* Mobile Home stays compact; its logo also moves to the same right-hand slot. */
body.fundo-principal .mobile-order #mobile-order-objectives .mobile-order-objective h4{
 position:static;display:block;margin:0 0 7px;min-height:28px;padding-right:36px;
}
body.fundo-principal .mobile-order #mobile-order-objectives .mobile-order-objective h4 .order-task-faction-logo{
 position:absolute;top:26px;right:9px;width:36px;height:36px;max-width:none;opacity:.4;
}
@media(max-width:768px){
 body[data-order-only] #ordem-maior .guerra-mo-task{padding:11px;border-radius:11px}
 body[data-order-only] #ordem-maior .guerra-mo-task h4{position:static;display:block;font-size:19px;line-height:1.2;min-height:32px;margin:0 0 8px;padding-right:48px}
 body[data-order-only] #ordem-maior .guerra-mo-task .order-task-faction-logo{position:absolute;top:28px;right:11px;width:50px;height:50px;opacity:.4}
 body[data-order-only] #ordem-maior .guerra-mo-task-kicker{font-size:9px;margin-bottom:7px}
 body[data-order-only] #ordem-maior .guerra-mo-task .order-equipment-icon{width:48px;height:48px;flex-basis:48px}
 body[data-order-only] #ordem-maior .guerra-mo-task .order-equipment-name{font-size:17px}
 body[data-order-only] #ordem-maior .guerra-mo-task .guerra-mo-meta{margin-top:7px}
 body[data-order-only] #ordem-maior .guerra-mo-task .guerra-mo-meta strong{font-size:14px}
}
@media(max-width:360px){
 body[data-order-only] #ordem-maior .guerra-mo-task h4{font-size:17px;padding-right:40px}
 body[data-order-only] #ordem-maior .guerra-mo-task .order-task-faction-logo{width:43px;height:43px}
 body[data-order-only] #ordem-maior .guerra-mo-task .order-equipment-name{font-size:15px}
}

/* Balance long weapon names instead of leaving a model digit on its own line. */
.order-equipment-name{text-wrap:balance;word-break:normal;overflow-wrap:break-word}


/* Semantic accents inside the approved HUD; retain card geometry and artwork. */
:is(#hd-ov-order,#ordem-maior,.mobile-order) :is(.hd-mo-task,.guerra-mo-task) h4,
body.fundo-principal .mobile-order #mobile-order-objectives .mobile-order-objective h4{
 text-transform:none;
}
.order-token{font:inherit;letter-spacing:inherit;text-transform:none}
.order-token-number{color:#ffe500}
.order-token-common{color:#60e99a}
.order-token-rare,.order-token-terminid{color:#ff9b3d}
.order-token-super{color:#f58bd7}
.order-token-automaton{color:#ff626c}
.order-token-illuminate{color:#c292ff}
.order-sample-icon{display:inline-block;width:1.05em;height:1.05em;vertical-align:-.12em;object-fit:contain;margin-right:.22em}
:is(#hd-ov-order,#ordem-maior,.mobile-order) :is(.hd-mo-task-progress-label,.guerra-mo-progress-label) :is(span,strong){color:#ffe500}

:is(#hd-ov-order,#ordem-maior) :is(.hd-mo-summary,.guerra-mo-summary) strong{color:#ffe500}
