/* Portal colors on the game chrome. Item and character colors stay local to their components. */
body.arcane-layout {
  --gci-panel:linear-gradient(155deg,#172539,#0b1422 72%);
  --gci-line:#917649;
  --gci-gold:#ffdb91;
  background:#0a111d!important;
}
body.arcane-layout #arcane-shell {
  background:linear-gradient(180deg,#0a111d44,#0a111df5 80%),url('/assets/portal/ruinas.webp') center top/cover fixed;
}
body.arcane-layout #arcane-shell :is(.player-hud,.game-chat,.arcane-loot-content),
body.arcane-layout #arcane-shell>#game-overlay {
  background:var(--gci-panel)!important;
  border-color:var(--gci-line)!important;
}
body.arcane-layout #arcane-shell>#game-overlay>header {
  background:linear-gradient(90deg,#26334a,#111c2c 68%)!important;
  border-bottom-color:var(--gci-line)!important;
}
body.arcane-layout #arcane-shell :is(#overlay-title,.arcane-nav-heading,.arcane-brand) {
  color:var(--gci-gold)!important;
}
body.arcane-layout #arcane-shell #nav button.active {
  background:linear-gradient(180deg,#4d3b25,#251d16)!important;
  border-color:#dba94f!important;
  color:#ffecbc!important;
  box-shadow:inset 0 1px #ffe6a944,0 0 12px #ffa82b2b!important;
}
body.arcane-layout #arcane-shell #overlay-body :is(.paperdoll,.owned-items,.inventory-v2-detail,.talent-header,.workshop-preview,.gacha-machine) {
  background:var(--gci-panel)!important;
  border-color:#776547!important;
}
body.arcane-layout #arcane-shell #arcane-header {
  background:linear-gradient(90deg,#0b1019 12%,#0b1019a8 52%,#0b1019 85%),url('/assets/portal/ruinas.webp') center 35%/cover!important;
  border-bottom-color:#917649!important;
}
body.arcane-layout #arcane-shell #arcane-sidebar {
  background:linear-gradient(180deg,#0d1828f5,#101a29d9 62%,#0a111ded)!important;
  border-right-color:#91764980!important;
}
body.arcane-layout #arcane-shell #arcane-hero-panel,
body.arcane-layout #arcane-shell #arcane-loot-panel {
  background:var(--gci-panel)!important;
  border-color:var(--gci-line)!important;
}

body.arcane-layout #arcane-shell :is(#battlefield,#arcane-hero-panel,#arcane-chat-panel,#arcane-loot-panel),
body.arcane-layout #arcane-shell #battlefield .map-hud {
  border-color:#b99858!important;
}
body.arcane-layout #arcane-shell :is(#arcane-hero-panel,#arcane-chat-panel,#arcane-loot-panel)::after {
  filter:sepia(1) saturate(1.45) brightness(.92);
}
body.arcane-layout #arcane-main #battlefield .expedition-flow-controls button[data-flow] {
  background:linear-gradient(#46351f,#211912)!important;
  color:#ffe1a3!important;
  border-color:#ad8848!important;
  box-shadow:inset 0 1px #ffe0a332,0 2px 6px #0006!important;
}
body.arcane-layout #arcane-main #battlefield .expedition-flow-controls button[data-flow]:hover:not(:disabled) {
  border-color:#ffe0a0!important;
  filter:brightness(1.12);
}
body.arcane-layout #arcane-main #battlefield .expedition-flow-controls button[data-flow][aria-pressed=true] {
  background:linear-gradient(#ffe0a0,#e8a73f)!important;
  color:#291b0b!important;
  border-color:#ffebbf!important;
  box-shadow:inset 0 1px #fff0c9,0 0 12px #ffb74570!important;
  text-shadow:none!important;
}
body.arcane-layout #arcane-main #battlefield .expedition-flow-controls button[data-flow]:focus-visible {
  outline:2px solid #fff0c9;
  outline-offset:2px;
}
body.arcane-layout #game-overlay[data-view=expedition] .map-card.selected {
  border-color:#efc46f!important;
  background:linear-gradient(155deg,#352a20,#121d2c 78%)!important;
  box-shadow:inset 0 0 0 1px #ffe1a548,0 0 14px #dd9e3d59!important;
}
body.arcane-layout #game-overlay[data-view=expedition] .map-card.selected .expedition-card-art {
  border-color:#dca650!important;
  box-shadow:inset 0 0 0 1px #ffe2a650!important;
}
body.arcane-layout #game-overlay[data-view=expedition] .map-card.selected .map-access-chip {
  padding:4px 8px!important;
  color:#211507!important;
  background:linear-gradient(#ffe3a4,#e6af50)!important;
  border-color:#fff0c4!important;
  box-shadow:0 0 8px #ffc55870!important;
  text-shadow:none!important;
}
body.arcane-layout #game-overlay[data-view=expedition] .map-card.selected>button[data-ui=map]:not(:disabled) {
  color:#ffe6af!important;
  background:linear-gradient(#624629,#302319)!important;
  border-color:#be914d!important;
}
body.arcane-layout #arcane-shell #battlefield .compact-map-hud {
  box-sizing:border-box!important;
  width:min(208px,calc(100% - 24px))!important;
  min-width:0!important;
  min-height:0!important;
  padding:7px 9px!important;
}
body.arcane-layout #arcane-shell #battlefield .compact-map-hud [data-open-expedition] {
  padding-right:26px;
}
body.arcane-layout #arcane-shell #battlefield .compact-map-hud h2 {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap!important;
  font-size:14px!important;
  line-height:1.2!important;
  margin:2px 0!important;
}
body.arcane-layout #arcane-shell #battlefield .compact-map-hud [data-open-expedition] small {
  line-height:1.2!important;
  font-size:10px!important;
}
body.arcane-layout #arcane-shell #battlefield .compact-map-hud .wave-progress {
  margin:4px 0 0!important;
  padding:3px 0 0!important;
}
body.arcane-layout #arcane-shell #battlefield .compact-map-hud .wave-progress-dots {
  height:21px!important;
}
body.arcane-layout #arcane-shell #battlefield .compact-map-hud[data-collapsed=true] {
  width:max-content!important;
  padding:0!important;
}
.compact-map-hud #battle-map-details[hidden] {display:none!important}
body.arcane-layout #arcane-shell #battlefield .compact-map-hud button[data-map-hud-toggle] {
  position:absolute;
  top:5px;
  right:5px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:23px!important;
  min-height:23px!important;
  margin:0!important;
  padding:2px 5px!important;
  border:1px solid #947851!important;
  border-radius:5px!important;
  background:#151e2b!important;
  color:#ffdfa0!important;
}
body.arcane-layout #arcane-shell #battlefield .compact-map-hud[data-collapsed=true] button[data-map-hud-toggle] {
  position:static;
  min-height:25px!important;
  padding-inline:8px!important;
  border:0!important;
}
.compact-map-hud .map-hud-toggle-mark::before {content:"−"}
.compact-map-hud[data-collapsed=true] .map-hud-toggle-mark::before {content:"+"}
.compact-map-hud[data-collapsed=false] .map-hud-toggle-label {display:none}
