.bonusSlots{display:inline-flex;align-items:center;gap:3px;order:999;flex:0 0 auto}
.bonusSlots .bonusSlot{display:grid;position:relative;place-items:center;min-width:34px;height:44px;padding:1px 3px;background:#102c35;border:1px solid #af8744;border-radius:5px;color:white}
.bonusSlot img{width:32px;height:32px;object-fit:contain}.bonusSlot b{position:absolute;right:1px;bottom:0;background:#081b27e8;padding:0 2px;border-radius:3px;font:700 10px system-ui}
.bonusSlot[hidden],#bonusHUD[hidden],#bonusHUD [hidden],#bonusNotice[hidden],#bonusBattle [hidden]{display:none!important}
.bonusSlot:disabled{opacity:.63}.bonusOffer img{object-fit:contain!important;object-position:center;width:100%;max-height:170px}
.bonusOffer p,.bonusLog{line-height:1.45}.bonusLog{grid-column:1/-1;padding:.7rem}.bonusLog summary{cursor:pointer}
#bonusHUD,#bonusNotice,#bonusBattle{box-sizing:border-box;position:fixed;z-index:550;background:linear-gradient(135deg,#143540,#071d28);color:#fff0d1;border:1px solid #c49749;border-radius:7px;font:14px/1.4 system-ui;padding:6px;box-shadow:0 3px 12px #0009}
#bonusHUD{top:max(18%,65px);left:8px;width:min(335px,49vw);max-height:45dvh;overflow:auto}
#bonusHUD button,#bonusBattle>button{font:600 13px system-ui;color:#ffe5b5;background:#173947;border:1px solid #a78045;border-radius:4px;padding:7px 10px}#bonusHUD .bonusHeading{width:100%;text-align:left}
#bonusHUD p{margin:5px 2px}#bonusNotice{bottom:24%;left:50%;transform:translateX(-50%);pointer-events:none;max-width:80vw}
.inBonusMap #bonusSeaInput{display:block;position:fixed;inset:0;z-index:120;touch-action:none}
#bonusBattle button[aria-pressed=true],.bonusSlot[aria-pressed=true]{outline:2px solid #64dcd8}
html[data-tideforge-device] #phoneBridge .phDeck .bonusSlots{position:absolute;left:100%;top:30%;display:flex;flex-direction:column;gap:2px;pointer-events:auto}
html[data-tideforge-device] #phoneBridge .phDeck .bonusSlot{position:relative;display:grid;width:34px;height:34px;min-width:34px;min-height:34px;aspect-ratio:1;overflow:hidden;padding:0}
html:is([data-tideforge-device=phone],[data-tideforge-device=tablet]) #phoneBridge .phDeck{right:calc(var(--ph-right) + 38px)}

html:not([data-touch-ui=true]) body.maritimeN1 #seaCommandN1>.actions{overflow-x:auto!important;scrollbar-width:thin}
html:not([data-touch-ui=true]) body.maritimeN1 #seaCommandN1>.actions .bonusSlots{position:sticky;right:0;z-index:1;padding:0 2px;background:#102833}

.inBonusMap #bonusSeaInput{z-index:5}
#bonusRadar{position:fixed;z-index:52;right:max(8px,env(safe-area-inset-right));top:max(13%,73px);width:114px;overflow:hidden;border:1px solid #b39252;border-radius:6px;background:#0b2635ee;color:#ffebbc}
#bonusRadar[hidden],#bonusRadar canvas[hidden]{display:none!important}
#bonusRadar button{width:100%;min-height:32px;border:0;border-bottom:1px solid #906f3a;background:#1b323c;color:inherit;font:600 12px system-ui;cursor:pointer}
#bonusRadar canvas{display:block;width:100%;height:auto}
@media(max-height:520px){#bonusRadar{top:max(50px,13%);width:82px}#bonusHUD{max-width:46vw}#bonusBattle{max-width:100vw}}
#bonusSeaInput{display:none}
body.inBonusMap #bonusSeaInput{display:block;position:fixed;inset:0;z-index:5;touch-action:none}
body.inBonusMap :is(#oilPanel,#portPopup,#mining10,#hudOwners,.phInfo){visibility:hidden!important;pointer-events:none!important}
#bonusItemsMenu{position:fixed;z-index:805;right:max(10px,env(safe-area-inset-right));bottom:max(95px,16dvh);width:min(300px,82vw);background:linear-gradient(145deg,#183642,#071820);border:2px solid #b68e49;border-radius:8px;color:#ffe9ba;box-shadow:0 8px 24px #0009;padding:9px;font:600 14px system-ui}
#bonusItemsMenu[hidden],#bonusItemsMenu [hidden],.bonusSlot[hidden]{display:none!important}
#bonusItemsMenu header,#bonusItemsMenu button[data-bonus-card]{display:flex;align-items:center;justify-content:space-between;gap:8px}
#bonusItemsMenu header{padding:4px 4px 8px}#bonusItemsMenu button,.bonusItems{border:1px solid #aa8544;border-radius:5px;color:#ffedc4;background:linear-gradient(#254755,#0a202b);cursor:pointer;padding:6px 9px;font-weight:700}
#bonusItemsMenu button[data-bonus-card]{width:100%;text-align:left;min-height:49px;margin:3px 0}#bonusItemsMenu img{width:45px;height:45px;object-fit:contain}#bonusItemsMenu small{display:block;padding:6px}#bonusItemsMenu button:disabled{opacity:.72}
.bonusItems{min-height:36px;touch-action:manipulation}.inBonusMap #seaCommandN1,.inBonusMap #phoneBridge{z-index:28}
html[data-tideforge-device] #phoneBridge .phDeck .bonusItems{position:static;min-width:38px;min-height:34px;line-height:1;font-size:11px}
@media(max-height:520px){#bonusItemsMenu{bottom:10px;right:22%;width:240px}#bonusHUD{top:50px;font-size:12px}}



#tfBoneBtn{position:relative}
#tfBoneBtn::before{
 background-image:url('/piraten-itembilder/Knochenkugel.png')!important;
 background-size:contain!important;
 background-repeat:no-repeat!important;
 background-position:center!important;
}
#tfBoneBtn::after{
 content:attr(data-g2b-label)!important;
 white-space:pre-line!important;
}
#tfBoneBtn img{width:32px;height:32px;object-fit:contain}
#tfBoneBtn b{font-weight:700}
#tfBoneBtn.tfSelected{outline:2px solid #f0c65e!important}


html[data-pirate-elite="true"] body.layout1 .actions
#tfBoneBtn[data-pirate-icon][data-g2b-label] {
 --action-art:url('/piraten-itembilder/Knochenkugel.png');
 --art-width:1254;
 --art-height:1254;
 --motif-width:1254;
 --motif-height:1254;
 --motif-x:0;
 --motif-y:0;
}

html[data-pirate-elite="true"] body.layout1 .actions
#tfBoneBtn[data-pirate-icon][data-g2b-label]::before {
 background-image:url('/piraten-itembilder/Knochenkugel.png')!important;
 background-size:100.0000% 100.0000%!important;
 background-position:50.0000% 50.0000%!important;
 aspect-ratio:1254 / 1254;
}

html body.layout1 .actions #tfBoneBtn[data-g2b-label]>* {
 display:none!important;
}

#tfBoneBtn[hidden]{display:none!important}
#tfBoneBtn.tfSelected{outline:2px solid #f0c65e!important}
